VirtualBox

Changeset 21145 in vbox for trunk/include


Ignore:
Timestamp:
Jul 2, 2009 8:13:44 AM (16 years ago)
Author:
vboxsync
Message:

Use ASMAtomicBitTestAndClear for VM_FF_TESTANDCLEAR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vm.h

    r21144 r21145  
    478478 * @param   iBit    Bit position to check and clear
    479479 */
    480 #define VM_FF_TESTANDCLEAR(pVM, iBit)        (ASMBitTestAndClear(&(pVM)->fGlobalForcedActions, iBit##_BIT))
     480#define VM_FF_TESTANDCLEAR(pVM, iBit)        (ASMAtomicBitTestAndClear(&(pVM)->fGlobalForcedActions, iBit##_BIT))
    481481
    482482/** @def VMCPU_FF_TESTANDCLEAR
     
    488488 * @param   iBit    Bit position to check and clear
    489489 */
    490 #define VMCPU_FF_TESTANDCLEAR(pVCpu, iBit)    (ASMBitTestAndClear(&(pVCpu)->fLocalForcedActions, iBit##_BIT))
     490#define VMCPU_FF_TESTANDCLEAR(pVCpu, iBit)    (ASMAtomicBitTestAndClear(&(pVCpu)->fLocalForcedActions, iBit##_BIT))
    491491
    492492/** @def VMCPU_FF_ISPENDING
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