VirtualBox

Changeset 19989 in vbox


Ignore:
Timestamp:
May 25, 2009 10:39:22 AM (16 years ago)
Author:
vboxsync
Message:

critsect-generic.cpp: Xchg*32 -> Write*32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/critsect-generic.cpp

    r13837 r19989  
    455455     * In case someone is waiting we'll signal the semaphore cLockers + 1 times.
    456456     */
    457     ASMAtomicXchgU32(&pCritSect->u32Magic, 0);
     457    ASMAtomicWriteU32(&pCritSect->u32Magic, ~RTCRITSECT_MAGIC);
    458458    pCritSect->fFlags           = 0;
    459459    pCritSect->cNestings        = 0;
     
    463463    while (pCritSect->cLockers-- >= 0)
    464464        RTSemEventSignal(EventSem);
    465     ASMAtomicXchgS32(&pCritSect->cLockers, -1);
     465    ASMAtomicWriteS32(&pCritSect->cLockers, -1);
    466466    int rc = RTSemEventDestroy(EventSem);
    467467    AssertRC(rc);
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