Changeset 42316 in vbox for trunk/src/VBox
- Timestamp:
- Jul 23, 2012 8:34:17 AM (13 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/Init.cpp
r42019 r42316 83 83 int rc = VINF_SUCCESS; 84 84 85 rc = RTSem FastMutexRequest(g_vbgldata.mutexDriverInit);85 rc = RTSemMutexRequest(g_vbgldata.mutexDriverInit, RT_INDEFINITE_WAIT); 86 86 87 87 if (RT_FAILURE(rc)) … … 90 90 if (g_vbgldata.status == VbglStatusReady) 91 91 { 92 RTSem FastMutexRelease(g_vbgldata.mutexDriverInit);92 RTSemMutexRelease(g_vbgldata.mutexDriverInit); 93 93 return; 94 94 } … … 119 119 } 120 120 } 121 RTSem FastMutexRelease(g_vbgldata.mutexDriverInit);121 RTSemMutexRelease(g_vbgldata.mutexDriverInit); 122 122 dprintf (("vbglQueryDriverInfo rc = %d\n", rc)); 123 123 } … … 242 242 if (RT_SUCCESS(rc)) 243 243 { 244 rc = RTSem FastMutexCreate(&g_vbgldata.mutexDriverInit);244 rc = RTSemMutexCreate(&g_vbgldata.mutexDriverInit); 245 245 if (RT_SUCCESS(rc)) 246 246 { … … 254 254 if (RT_FAILURE(rc)) 255 255 { 256 RTSem FastMutexDestroy(g_vbgldata.mutexDriverInit);257 g_vbgldata.mutexDriverInit = NIL_RTSEM FASTMUTEX;256 RTSemMutexDestroy(g_vbgldata.mutexDriverInit); 257 g_vbgldata.mutexDriverInit = NIL_RTSEMMUTEX; 258 258 } 259 259 } … … 284 284 if (vbglDriverIsOpened(&g_vbgldata.driver)) 285 285 vbglDriverClose(&g_vbgldata.driver); 286 RTSem FastMutexDestroy(g_vbgldata.mutexDriverInit);287 g_vbgldata.mutexDriverInit = NIL_RTSEM FASTMUTEX;286 RTSemMutexDestroy(g_vbgldata.mutexDriverInit); 287 g_vbgldata.mutexDriverInit = NIL_RTSEMMUTEX; 288 288 289 289 /* note: do vbglTerminateCommon as a last step since it zeroez up the g_vbgldata -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBGLInternal.h
r41852 r42316 105 105 */ 106 106 107 RTSEM FASTMUTEX mutexDriverInit;107 RTSEMMUTEX mutexDriverInit; 108 108 109 109 VBGLDRIVER driver;
Note:
See TracChangeset
for help on using the changeset viewer.