Changeset 25685 in vbox for trunk/src/VBox/Runtime/r3/posix
- Timestamp:
- Jan 7, 2010 10:03:06 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56405
- Location:
- trunk/src/VBox/Runtime/r3/posix
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/semevent-posix.cpp
r25682 r25685 134 134 RTLockValidatorRecSharedInit(&pThis->Signallers, 135 135 NIL_RTLOCKVALCLASS, RTLOCKVAL_SUB_CLASS_ANY, 136 "RTSemEvent", pThis, true /*fSignaller*/ );136 "RTSemEvent", pThis, true /*fSignaller*/, true); 137 137 pThis->fEverHadSignallers = false; 138 138 #endif … … 332 332 { 333 333 rc = RTLockValidatorRecSharedCheckBlocking(&pThis->Signallers, hThreadSelf, pSrcPos, false, 334 RTTHREADSTATE_EVENT, true);334 cMillies, RTTHREADSTATE_EVENT, true); 335 335 if (RT_FAILURE(rc)) 336 336 { … … 426 426 { 427 427 rc = RTLockValidatorRecSharedCheckBlocking(&pThis->Signallers, hThreadSelf, pSrcPos, false, 428 RTTHREADSTATE_EVENT, true);428 cMillies, RTTHREADSTATE_EVENT, true); 429 429 if (RT_FAILURE(rc)) 430 430 { -
trunk/src/VBox/Runtime/r3/posix/semeventmulti-posix.cpp
r25682 r25685 124 124 RTLockValidatorRecSharedInit(&pThis->Signallers, 125 125 NIL_RTLOCKVALCLASS, RTLOCKVAL_SUB_CLASS_ANY, 126 "RTSemEventMulti", pThis, true /*fSignaller*/ );126 "RTSemEventMulti", pThis, true /*fSignaller*/, true); 127 127 pThis->fEverHadSignallers = false; 128 128 #endif … … 361 361 { 362 362 rc = RTLockValidatorRecSharedCheckBlocking(&pThis->Signallers, hThreadSelf, pSrcPos, false, 363 RTTHREADSTATE_EVENT_MULTI, true);363 cMillies, RTTHREADSTATE_EVENT_MULTI, true); 364 364 if (RT_FAILURE(rc)) 365 365 { … … 457 457 { 458 458 rc = RTLockValidatorRecSharedCheckBlocking(&pThis->Signallers, hThreadSelf, pSrcPos, false, 459 RTTHREADSTATE_EVENT_MULTI, true);459 cMillies, RTTHREADSTATE_EVENT_MULTI, true); 460 460 if (RT_FAILURE(rc)) 461 461 { -
trunk/src/VBox/Runtime/r3/posix/semmutex-posix.cpp
r25682 r25685 102 102 pThis->u32Magic = RTSEMMUTEX_MAGIC; 103 103 #ifdef RTSEMMUTEX_STRICT 104 RTLockValidatorRecExclInit(&pThis->ValidatorRec, NIL_RTLOCKVALCLASS, RTLOCKVAL_SUB_CLASS_NONE, "RTSemMutex", pThis );104 RTLockValidatorRecExclInit(&pThis->ValidatorRec, NIL_RTLOCKVALCLASS, RTLOCKVAL_SUB_CLASS_NONE, "RTSemMutex", pThis, true); 105 105 #endif 106 106 … … 189 189 hThreadSelf = RTThreadSelfAutoAdopt(); 190 190 int rc9 = RTLockValidatorRecExclCheckOrderAndBlocking(&pThis->ValidatorRec, hThreadSelf, pSrcPos, true, 191 RTTHREADSTATE_MUTEX, true);191 cMillies, RTTHREADSTATE_MUTEX, true); 192 192 if (RT_FAILURE(rc9)) 193 193 return rc9; -
trunk/src/VBox/Runtime/r3/posix/semrw-posix.cpp
r25682 r25685 126 126 pThis->Writer = (pthread_t)-1; 127 127 #ifdef RTSEMRW_STRICT 128 RTLockValidatorRecExclInit(&pThis->ValidatorWrite, NIL_RTLOCKVALCLASS, RTLOCKVAL_SUB_CLASS_NONE, "RTSemRW", pThis );129 RTLockValidatorRecSharedInit(&pThis->ValidatorRead, NIL_RTLOCKVALCLASS, RTLOCKVAL_SUB_CLASS_NONE, "RTSemRW", pThis, false /*fSignaller*/ );128 RTLockValidatorRecExclInit(&pThis->ValidatorWrite, NIL_RTLOCKVALCLASS, RTLOCKVAL_SUB_CLASS_NONE, "RTSemRW", pThis, true); 129 RTLockValidatorRecSharedInit(&pThis->ValidatorRead, NIL_RTLOCKVALCLASS, RTLOCKVAL_SUB_CLASS_NONE, "RTSemRW", pThis, false /*fSignaller*/, true); 130 130 RTLockValidatorRecMakeSiblings(&pThis->ValidatorWrite.Core, &pThis->ValidatorRead.Core); 131 131 #endif … … 225 225 hThreadSelf = RTThreadSelfAutoAdopt(); 226 226 int rc9 = RTLockValidatorRecSharedCheckOrderAndBlocking(&pThis->ValidatorRead, hThreadSelf, pSrcPos, true, 227 RTTHREADSTATE_RW_READ, true);227 cMillies, RTTHREADSTATE_RW_READ, true); 228 228 if (RT_FAILURE(rc9)) 229 229 return rc9; … … 418 418 hThreadSelf = RTThreadSelfAutoAdopt(); 419 419 int rc9 = RTLockValidatorRecExclCheckOrderAndBlocking(&pThis->ValidatorWrite, hThreadSelf, pSrcPos, true, 420 RTTHREADSTATE_RW_WRITE, true);420 cMillies, RTTHREADSTATE_RW_WRITE, true); 421 421 if (RT_FAILURE(rc9)) 422 422 return rc9;
Note:
See TracChangeset
for help on using the changeset viewer.