VirtualBox

Changeset 7019 in vbox


Ignore:
Timestamp:
Feb 19, 2008 2:14:19 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28234
Message:

Use the new ASMAtomic[Uo]Read/Write stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/linux/semeventmulti-linux.cpp

    r6747 r7019  
    113113     * Invalidate the semaphore and wake up anyone waiting on it.
    114114     */
    115     ASMAtomicXchgSize(&pThis->iMagic, RTSEMEVENTMULTI_MAGIC + 1);
     115    ASMAtomicWriteSize(&pThis->iMagic, RTSEMEVENTMULTI_MAGIC + 1);
    116116    if (ASMAtomicXchgS32(&pThis->iState, -1) == 1)
    117117    {
     
    184184     * Quickly check whether it's signaled.
    185185     */
    186     int32_t iCur = pThis->iState;
     186    int32_t iCur = ASMAtomicUoReadS32(&pThis->iState);
    187187    Assert(iCur == 0 || iCur == -1 || iCur == 1);
    188188    if (iCur == -1)
     
    212212         * threads waiting on the semaphore to keep things simple.
    213213         */
    214         iCur = pThis->iState;
     214        iCur = ASMAtomicUoReadS32(&pThis->iState);
    215215        Assert(iCur == 0 || iCur == -1 || iCur == 1);
    216216        if (    iCur == 1
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette