Changeset 25618 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Jan 2, 2010 12:00:33 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56309
- Location:
- trunk/src/VBox/Runtime/r3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/linux/semmutex-linux.cpp
r25614 r25618 240 240 { 241 241 #ifdef RTSEMMUTEX_STRICT 242 int rc9 = RTLockValidatorRecExclCheckBlocking(&pThis->ValidatorRec, hThreadSelf, pSrcPos, true );242 int rc9 = RTLockValidatorRecExclCheckBlocking(&pThis->ValidatorRec, hThreadSelf, pSrcPos, true, RTTHREADSTATE_MUTEX); 243 243 if (RT_FAILURE(rc9)) 244 244 return rc9; 245 #e ndif245 #else 246 246 RTThreadBlocking(hThreadSelf, RTTHREADSTATE_MUTEX); 247 #endif 247 248 } 248 249 -
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 -
trunk/src/VBox/Runtime/r3/win/semmutex-win.cpp
r25614 r25618 159 159 #ifdef RTSEMMUTEX_STRICT 160 160 hThreadSelf = RTThreadSelfAutoAdopt(); 161 int rc9 = RTLockValidatorRecExclCheckOrderAndBlocking(&pThis->ValidatorRec, hThreadSelf, pSrcPos, true );161 int rc9 = RTLockValidatorRecExclCheckOrderAndBlocking(&pThis->ValidatorRec, hThreadSelf, pSrcPos, true, RTTHREADSTATE_MUTEX); 162 162 if (RT_FAILURE(rc9)) 163 163 return rc9; 164 164 #else 165 165 hThreadSelf = RTThreadSelf(); 166 #endif167 166 RTThreadBlocking(hThreadSelf, RTTHREADSTATE_MUTEX); 167 #endif 168 168 } 169 169 int rc = WaitForSingleObjectEx(pThis->hMtx,
Note:
See TracChangeset
for help on using the changeset viewer.