Changeset 25618 in vbox for trunk/src/VBox/Runtime/r3/posix
- Timestamp:
- Jan 2, 2010 12:00:33 PM (15 years ago)
- Location:
- trunk/src/VBox/Runtime/r3/posix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/semmutex-posix.cpp
r25614 r25618 188 188 #ifdef RTSEMMUTEX_STRICT 189 189 hThreadSelf = RTThreadSelfAutoAdopt(); 190 int rc9 = RTLockValidatorRecExclCheckOrderAndBlocking(&pThis->ValidatorRec, hThreadSelf, pSrcPos, true );190 int rc9 = RTLockValidatorRecExclCheckOrderAndBlocking(&pThis->ValidatorRec, hThreadSelf, pSrcPos, true, RTTHREADSTATE_MUTEX); 191 191 if (RT_FAILURE(rc9)) 192 192 return rc9; 193 193 #else 194 194 hThreadSelf = RTThreadSelf(); 195 #endif196 195 RTThreadBlocking(hThreadSelf, RTTHREADSTATE_MUTEX); 196 #endif 197 197 } 198 198 -
trunk/src/VBox/Runtime/r3/posix/semrw-posix.cpp
r25616 r25618 219 219 #ifdef RTSEMRW_STRICT 220 220 hThreadSelf = RTThreadSelfAutoAdopt(); 221 int rc9 = RTLockValidatorRecSharedCheckOrderAndBlocking(&pThis->ValidatorRead, hThreadSelf, pSrcPos, true );221 int rc9 = RTLockValidatorRecSharedCheckOrderAndBlocking(&pThis->ValidatorRead, hThreadSelf, pSrcPos, true, RTTHREADSTATE_RW_READ); 222 222 if (RT_FAILURE(rc9)) 223 223 return rc9; 224 224 #else 225 225 hThreadSelf = RTThreadSelf(); 226 #endif227 226 RTThreadBlocking(hThreadSelf, RTTHREADSTATE_RW_READ); 227 #endif 228 228 } 229 229 … … 381 381 #ifdef RTSEMRW_STRICT 382 382 hThreadSelf = RTThreadSelfAutoAdopt(); 383 int rc9 = RTLockValidatorRecExclCheckOrderAndBlocking(&pThis->ValidatorWrite, hThreadSelf, pSrcPos, true );383 int rc9 = RTLockValidatorRecExclCheckOrderAndBlocking(&pThis->ValidatorWrite, hThreadSelf, pSrcPos, true, RTTHREADSTATE_RW_WRITE); 384 384 if (RT_FAILURE(rc9)) 385 385 return rc9; 386 386 #else 387 387 hThreadSelf = RTThreadSelf(); 388 #endif389 388 RTThreadBlocking(hThreadSelf, RTTHREADSTATE_RW_WRITE); 389 #endif 390 390 } 391 391
Note:
See TracChangeset
for help on using the changeset viewer.