VirtualBox

Changeset 47645 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Aug 9, 2013 1:47:38 PM (11 years ago)
Author:
vboxsync
Message:

VMM: RTThreadCtxHooksAre[Registered|Created](). Moved it into IN_RING0 as soon we'll require PFNRTTHREADCTXHOOK.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r47457 r47645  
    462462{
    463463    RTThreadCtxHooksRelease(pVCpu->vmm.s.hR0ThreadCtx);
     464}
     465
     466
     467/**
     468 * Whether thread-context hooks are created (implying they're supported) on this
     469 * platform.
     470 *
     471 * @returns true if the hooks are created, false otherwise.
     472 * @param   pVCpu       Pointer to the VMCPU.
     473 *
     474 * @remarks Can be called from any thread.
     475 */
     476VMMR0DECL(bool) VMMR0ThreadCtxHooksAreCreated(PVMCPU pVCpu)
     477{
     478    return pVCpu->vmm.s.hR0ThreadCtx != NIL_RTTHREADCTX;
     479}
     480
     481
     482/**
     483 * Whether thread-context hooks are registered for this VCPU.
     484 *
     485 * @returns true if registered, false otherwise.
     486 * @param   pVCpu       Pointer to the VMCPU.
     487 */
     488VMMR0DECL(bool) VMMR0ThreadCtxHooksAreRegistered(PVMCPU pVCpu)
     489{
     490    return RTThreadCtxHooksAreRegistered(pVCpu->vmm.s.hR0ThreadCtx);
    464491}
    465492
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