Changeset 7019 in vbox
- Timestamp:
- Feb 19, 2008 2:14:19 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28234
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/linux/semeventmulti-linux.cpp
r6747 r7019 113 113 * Invalidate the semaphore and wake up anyone waiting on it. 114 114 */ 115 ASMAtomic XchgSize(&pThis->iMagic, RTSEMEVENTMULTI_MAGIC + 1);115 ASMAtomicWriteSize(&pThis->iMagic, RTSEMEVENTMULTI_MAGIC + 1); 116 116 if (ASMAtomicXchgS32(&pThis->iState, -1) == 1) 117 117 { … … 184 184 * Quickly check whether it's signaled. 185 185 */ 186 int32_t iCur = pThis->iState;186 int32_t iCur = ASMAtomicUoReadS32(&pThis->iState); 187 187 Assert(iCur == 0 || iCur == -1 || iCur == 1); 188 188 if (iCur == -1) … … 212 212 * threads waiting on the semaphore to keep things simple. 213 213 */ 214 iCur = pThis->iState;214 iCur = ASMAtomicUoReadS32(&pThis->iState); 215 215 Assert(iCur == 0 || iCur == -1 || iCur == 1); 216 216 if ( iCur == 1
Note:
See TracChangeset
for help on using the changeset viewer.