VirtualBox

Ignore:
Timestamp:
Aug 4, 2012 2:35:01 PM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: fix ocasional packspu init misbeave

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_context.c

    r42528 r42591  
    6161    thread->netServer.name = crStrdup( pack_spu.name );
    6262    thread->netServer.buffer_size = pack_spu.buffer_size;
    63     if (pack_spu.numThreads == 0) {
    64         packspuConnectToServer( &(thread->netServer)
    65 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
    66                 , pHgsmi
    67 #endif
    68                 );
    69         if (!thread->netServer.conn) {
    70             return NULL;
    71         }
    72         pack_spu.swap = thread->netServer.conn->swap;
    73     }
    74     else {
    75         /* a new pthread */
    76         crNetNewClient(&(thread->netServer)
    77 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
    78                 , pHgsmi
    79 #endif
    80         );
    81         CRASSERT(thread->netServer.conn);
    82     }
    83 
     63    packspuConnectToServer( &(thread->netServer)
     64#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
     65            , pHgsmi
     66#endif
     67            );
     68    CRASSERT(thread->netServer.conn);
    8469    /* packer setup */
    8570    CRASSERT(thread->packer == NULL);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette