- Timestamp:
- Oct 23, 2007 2:22:38 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 25606
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/sems-posix.cpp
r5324 r5443 725 725 pthread_mutexattr_destroy(&MutexAttr); 726 726 727 pIntMutexSem->Owner = ~(pthread_t)0;727 pIntMutexSem->Owner = (pthread_t)-1; 728 728 pIntMutexSem->cNesting = 0; 729 729 … … 767 767 * Free the memory and be gone. 768 768 */ 769 pIntMutexSem->Owner = ~(pthread_t)0;769 pIntMutexSem->Owner = (pthread_t)-1; 770 770 pIntMutexSem->cNesting = ~0; 771 771 RTMemTmpFree(pIntMutexSem); … … 896 896 * Clear the state. (cNesting == 1) 897 897 */ 898 pIntMutexSem->Owner = ~(pthread_t)0;898 pIntMutexSem->Owner = (pthread_t)-1; 899 899 ASMAtomicXchgU32(&pIntMutexSem->cNesting, 0); 900 900 … … 956 956 { 957 957 pIntRWSem->uCheck = ~0; 958 pIntRWSem->WROwner = ~(pthread_t)0;958 pIntRWSem->WROwner = (pthread_t)-1; 959 959 *pRWSem = pIntRWSem; 960 960 return VINF_SUCCESS; … … 1198 1198 * Try unlock it. 1199 1199 */ 1200 ASMAtomicXchgSize(&pIntRWSem->WROwner, ~(pthread_t)0);1200 ASMAtomicXchgSize(&pIntRWSem->WROwner, (pthread_t)-1); 1201 1201 int rc = pthread_rwlock_unlock(&pIntRWSem->RWLock); 1202 1202 if (rc)
Note:
See TracChangeset
for help on using the changeset viewer.