VirtualBox

Changeset 37986 in vbox for trunk/src/VBox/GuestHost/OpenGL


Ignore:
Timestamp:
Jul 15, 2011 3:14:35 PM (13 years ago)
Author:
vboxsync
Message:

Wddm/3d: fix thread sync issues

Location:
trunk/src/VBox/GuestHost/OpenGL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_hash.h

    r15532 r37986  
    3636/*Returns GL_TRUE if given hashtable hold the data, pKey is updated with key value for data in this case*/
    3737DECLEXPORT(GLboolean) crHashtableGetDataKey(CRHashTable *pHash, void *pData, unsigned long *pKey);
     38DECLEXPORT(void) crHashtableLock(CRHashTable *h);
     39DECLEXPORT(void) crHashtableUnlock(CRHashTable *h);
    3840
    3941#ifdef __cplusplus
  • trunk/src/VBox/GuestHost/OpenGL/util/hash.c

    r31808 r37986  
    353353}
    354354
     355void crHashtableLock(CRHashTable *h)
     356{
     357#ifdef CHROMIUM_THREADSAFE
     358    crLockMutex(&h->mutex);
     359#endif
     360}
     361
     362void crHashtableUnlock(CRHashTable *h)
     363{
     364#ifdef CHROMIUM_THREADSAFE
     365    crUnlockMutex(&h->mutex);
     366#endif
     367}
    355368
    356369void crHashtableWalk( CRHashTable *hash, CRHashtableWalkCallback walkFunc , void *dataPtr2)
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