- Timestamp:
- Oct 23, 2007 2:55:02 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/sems-posix.cpp
r5443 r5444 1160 1160 } 1161 1161 1162 #ifdef RT_OS_SOLARIS 1162 1163 ASMAtomicXchgSize(&pIntRWSem->WROwner, pthread_self()); 1164 #else 1165 ASMAtomicXchgPtr(&pIntRWSem->WROwner, pthread_self()); 1166 #endif 1163 1167 1164 1168 return VINF_SUCCESS; … … 1198 1202 * Try unlock it. 1199 1203 */ 1204 #ifdef RT_OS_SOLARIS 1200 1205 ASMAtomicXchgSize(&pIntRWSem->WROwner, (pthread_t)-1); 1206 #else 1207 ASMAtomicXchgPtr(&pIntRWSem->WROwner, (pthread_t)-1); 1208 #endif 1201 1209 int rc = pthread_rwlock_unlock(&pIntRWSem->RWLock); 1202 1210 if (rc)
Note:
See TracChangeset
for help on using the changeset viewer.