Changeset 5445 in vbox
- Timestamp:
- Oct 23, 2007 3:09:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/sems-posix.cpp
r5444 r5445 1163 1163 ASMAtomicXchgSize(&pIntRWSem->WROwner, pthread_self()); 1164 1164 #else 1165 ASMAtomicXchgPtr( &pIntRWSem->WROwner,pthread_self());1165 ASMAtomicXchgPtr((void * volatile *)&pIntRWSem->WROwner, (void *)pthread_self()); 1166 1166 #endif 1167 1167 … … 1205 1205 ASMAtomicXchgSize(&pIntRWSem->WROwner, (pthread_t)-1); 1206 1206 #else 1207 ASMAtomicXchgPtr(&pIntRWSem->WROwner, (pthread_t)-1); 1207 AssertMsg(sizeof(pthread_t) == sizeof(void *), ("pthread_t is not the size of a pointer but %d bytes\n", sizeof(pthread_t))); 1208 ASMAtomicXchgPtr((void * volatile *)&pIntRWSem->WROwner, (void *)(pthread_t)-1); 1208 1209 #endif 1209 1210 int rc = pthread_rwlock_unlock(&pIntRWSem->RWLock);
Note:
See TracChangeset
for help on using the changeset viewer.