VirtualBox

Changeset 35845 in vbox


Ignore:
Timestamp:
Feb 4, 2011 7:11:09 AM (14 years ago)
Author:
vboxsync
Message:

crOpenGL: proper deadlock fix for r69838

Location:
trunk/src/VBox/Additions/common/crOpenGL/pack
Files:
2 edited

Legend:

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

    r35844 r35845  
    134134                && pack_spu.thread[i].packer && pack_spu.thread[i].packer->currentBuffer)
    135135            {
    136                 crUnlockMutex(&_PackMutex);
    137136                packspuFlush((void *) &pack_spu.thread[i]);
    138137                break;
     
    146145             */
    147146            thread->netServer.conn->u32InjectClientID=0;
    148             crUnlockMutex(&_PackMutex);
    149         }
     147        }
     148
     149        crUnlockMutex(&_PackMutex);
    150150
    151151        packspuFlush((void *) thread);
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_net.c

    r33475 r35845  
    120120    CRPackBuffer *buf;
    121121
    122 #ifdef CHROMIUM_THREADSAFE
    123     crLockMutex(&_PackMutex);
    124 #endif
    125 
    126122    /* we should _always_ pass a valid <arg> value */
    127     CRASSERT(thread);
     123    CRASSERT(thread && thread->inUse);
    128124#ifdef CHROMIUM_THREADSAFE
    129125    CR_LOCK_PACKER_CONTEXT(thread->packer);
     
    152148#ifdef CHROMIUM_THREADSAFE
    153149           CR_UNLOCK_PACKER_CONTEXT(thread->packer);
    154            crUnlockMutex(&_PackMutex);
    155150#endif
    156151           return;
     
    183178#ifdef CHROMIUM_THREADSAFE
    184179    CR_UNLOCK_PACKER_CONTEXT(thread->packer);
    185     crUnlockMutex(&_PackMutex);
    186180#endif
    187181}
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