VirtualBox

Changeset 19888 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
May 21, 2009 3:25:42 PM (16 years ago)
Author:
vboxsync
Message:

semevent-r0drv-linux.c: Use ASMAtomicWriteU32 instead of XchgU32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/semevent-r0drv-linux.c

    r19887 r19888  
    9393     * Invalidate it and signal the object just in case.
    9494     */
    95     ASMAtomicIncU32(&pEventInt->u32Magic);
    96     ASMAtomicXchgU32(&pEventInt->fState, 0);
     95    ASMAtomicWriteU32(&pEventInt->u32Magic, ~RTSEMEVENT_MAGIC);
     96    ASMAtomicWriteU32(&pEventInt->fState, 0);
    9797    Assert(!waitqueue_active(&pEventInt->Head));
    9898    wake_up_all(&pEventInt->Head);
     
    120120     * Signal the event object.
    121121     */
    122     ASMAtomicXchgU32(&pEventInt->fState, 1);
     122    ASMAtomicWriteU32(&pEventInt->fState, 1);
    123123    wake_up(&pEventInt->Head);
    124124
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