Changeset 16200 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jan 23, 2009 3:26:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/semfastmutex-r0drv-solaris.c
r8245 r16200 55 55 uint32_t u32Magic; 56 56 /** The Solaris mutex. */ 57 k mutex_tMtx;57 krwlock_t Mtx; 58 58 } RTSEMFASTMUTEXINTERNAL, *PRTSEMFASTMUTEXINTERNAL; 59 59 … … 68 68 { 69 69 pFastInt->u32Magic = RTSEMFASTMUTEX_MAGIC; 70 mutex_init (&pFastInt->Mtx, "IPRT Fast Mutex Semaphore", MUTEX_DRIVER, NULL);70 rw_init (&pFastInt->Mtx, "RWLOCK", RW_DRIVER, NULL); 71 71 *pMutexSem = pFastInt; 72 72 return VINF_SUCCESS; … … 87 87 88 88 ASMAtomicXchgU32(&pFastInt->u32Magic, RTSEMFASTMUTEX_MAGIC_DEAD); 89 mutex_destroy(&pFastInt->Mtx);89 rw_destroy(&pFastInt->Mtx); 90 90 RTMemFree(pFastInt); 91 91 … … 102 102 VERR_INVALID_PARAMETER); 103 103 104 mutex_enter(&pFastInt->Mtx);104 rw_enter(&pFastInt->Mtx, RW_WRITER); 105 105 return VINF_SUCCESS; 106 106 } … … 115 115 VERR_INVALID_PARAMETER); 116 116 117 mutex_exit(&pFastInt->Mtx);117 rw_exit(&pFastInt->Mtx); 118 118 return VINF_SUCCESS; 119 119 }
Note:
See TracChangeset
for help on using the changeset viewer.