VirtualBox

Changeset 22789 in vbox for trunk/include


Ignore:
Timestamp:
Sep 4, 2009 4:48:28 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51982
Message:

VBox/vm.h: Added VM_ASSERT_EMT0 and VM_ASSERT_EMT0_RETURN.

File:
1 edited

Legend:

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

    r22707 r22789  
    597597#endif
    598598
     599/** @def VM_ASSERT_EMT0
     600 * Asserts that the current thread IS emulation thread \#0 (EMT0).
     601 */
     602#define VM_ASSERT_EMT0(pVM)                 VMCPU_ASSERT_EMT(&(pVM)->aCpus[0])
     603
     604/** @def VM_ASSERT_EMT0_RETURN
     605 * Asserts that the current thread IS emulation thread \#0 (EMT0) and returns if
     606 * it isn't.
     607 */
     608#define VM_ASSERT_EMT0_RETURN(pVM, rc)      VMCPU_ASSERT_EMT_RETURN(&(pVM)->aCpus[0], (rc))
     609
    599610
    600611/**
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