Changeset 74786 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Oct 12, 2018 10:20:59 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 125730
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/vm.h
r74785 r74786 658 658 659 659 /** @def VMCPU_FF_CLEAR 660 * Clears a force action flag for the given VCPU.660 * Clears a single force action flag for the given VCPU. 661 661 * 662 662 * @param pVCpu The cross context virtual CPU structure. 663 663 * @param fFlag The flag to clear. 664 664 */ 665 #define VMCPU_FF_CLEAR(pVCpu, fFlag) ASMAtomicAndU32(&(pVCpu)->fLocalForcedActions, ~(fFlag)) 665 #if !defined(VBOX_STRICT) || !defined(RT_COMPILER_SUPPORTS_LAMBDA) 666 # define VMCPU_FF_CLEAR(pVCpu, fFlag) ASMAtomicAndU32(&(pVCpu)->fLocalForcedActions, ~(fFlag)) 667 #else 668 # define VMCPU_FF_CLEAR(pVCpu, fFlag) \ 669 ([](PVMCPU a_pVCpu) -> void \ 670 { \ 671 AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); \ 672 ASMAtomicAndU32(&a_pVCpu->fLocalForcedActions, ~(fFlag)); \ 673 }(pVCpu)) 674 #endif 675 676 /** @def VMCPU_FF_CLEAR_MASK 677 * Clears two or more force action flags for the given VCPU. 678 * 679 * @param pVCpu The cross context virtual CPU structure. 680 * @param fFlags The flags to clear. 681 */ 682 #define VMCPU_FF_CLEAR_MASK(pVCpu, fFlags) ASMAtomicAndU32(&(pVCpu)->fLocalForcedActions, ~(fFlags)) 666 683 667 684 /** @def VM_FF_IS_SET
Note:
See TracChangeset
for help on using the changeset viewer.