VirtualBox

Changeset 12983 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Oct 4, 2008 10:17:38 PM (16 years ago)
Author:
vboxsync
Message:

#1865: PDMCritSect.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp

    r10204 r12983  
    11/* $Id$ */
    22/** @file
    3  * PDM Critical Sections
     3 * PDM - Critical Sections, All Contexts.
    44 */
    55
     
    6161    return rc;
    6262
    63 #else
     63#else  /* !IN_RING3 */
    6464    AssertMsgReturn(pCritSect->s.Core.u32Magic == RTCRITSECT_MAGIC, ("%RX32\n", pCritSect->s.Core.u32Magic),
    6565                    VERR_SEM_DESTROYED);
    66     PVM pVM = pCritSect->s.CTXALLSUFF(pVM);
     66    PVM pVM = pCritSect->s.CTX_SUFF(pVM);
    6767    Assert(pVM);
    6868
     
    9191     * Failed.
    9292     */
    93     LogFlow(("PDMCritSectEnter: locked => HC (%Vrc)\n", rcBusy));
    94     STAM_COUNTER_INC(&pCritSect->s.StatContentionR0GCLock);
     93    LogFlow(("PDMCritSectEnter: locked => R3 (%Vrc)\n", rcBusy));
     94    STAM_COUNTER_INC(&pCritSect->s.StatContentionRZLock);
    9595    return rcBusy;
    96 #endif
     96#endif /* !IN_RING3 */
    9797}
    9898
     
    157157    Assert(pCritSect->s.Core.cNestings > 0);
    158158    Assert(pCritSect->s.Core.cLockers >= 0);
    159     PVM pVM = pCritSect->s.CTXALLSUFF(pVM);
     159    PVM pVM = pCritSect->s.CTX_SUFF(pVM);
    160160    Assert(pVM);
    161161    Assert(pCritSect->s.Core.NativeThreadOwner == pVM->NativeThreadEMT);
     
    198198    VM_FF_SET(pVM, VM_FF_TO_R3);
    199199    STAM_COUNTER_INC(&pVM->pdm.s.StatQueuedCritSectLeaves);
    200     STAM_COUNTER_INC(&pCritSect->s.StatContentionR0GCUnlock);
    201 #endif
     200    STAM_COUNTER_INC(&pCritSect->s.StatContentionRZUnlock);
     201#endif /* !IN_RING3 */
    202202}
    203203
     
    215215    return RTCritSectIsOwner(&pCritSect->s.Core);
    216216#else
    217     PVM pVM = pCritSect->s.CTXALLSUFF(pVM);
     217    PVM pVM = pCritSect->s.CTX_SUFF(pVM);
    218218    Assert(pVM);
    219219    return pCritSect->s.Core.NativeThreadOwner == pVM->NativeThreadEMT;
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