Changeset 12983 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Oct 4, 2008 10:17:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp
r10204 r12983 1 1 /* $Id$ */ 2 2 /** @file 3 * PDM Critical Sections3 * PDM - Critical Sections, All Contexts. 4 4 */ 5 5 … … 61 61 return rc; 62 62 63 #else 63 #else /* !IN_RING3 */ 64 64 AssertMsgReturn(pCritSect->s.Core.u32Magic == RTCRITSECT_MAGIC, ("%RX32\n", pCritSect->s.Core.u32Magic), 65 65 VERR_SEM_DESTROYED); 66 PVM pVM = pCritSect->s.CTX ALLSUFF(pVM);66 PVM pVM = pCritSect->s.CTX_SUFF(pVM); 67 67 Assert(pVM); 68 68 … … 91 91 * Failed. 92 92 */ 93 LogFlow(("PDMCritSectEnter: locked => HC(%Vrc)\n", rcBusy));94 STAM_COUNTER_INC(&pCritSect->s.StatContentionR 0GCLock);93 LogFlow(("PDMCritSectEnter: locked => R3 (%Vrc)\n", rcBusy)); 94 STAM_COUNTER_INC(&pCritSect->s.StatContentionRZLock); 95 95 return rcBusy; 96 #endif 96 #endif /* !IN_RING3 */ 97 97 } 98 98 … … 157 157 Assert(pCritSect->s.Core.cNestings > 0); 158 158 Assert(pCritSect->s.Core.cLockers >= 0); 159 PVM pVM = pCritSect->s.CTX ALLSUFF(pVM);159 PVM pVM = pCritSect->s.CTX_SUFF(pVM); 160 160 Assert(pVM); 161 161 Assert(pCritSect->s.Core.NativeThreadOwner == pVM->NativeThreadEMT); … … 198 198 VM_FF_SET(pVM, VM_FF_TO_R3); 199 199 STAM_COUNTER_INC(&pVM->pdm.s.StatQueuedCritSectLeaves); 200 STAM_COUNTER_INC(&pCritSect->s.StatContentionR 0GCUnlock);201 #endif 200 STAM_COUNTER_INC(&pCritSect->s.StatContentionRZUnlock); 201 #endif /* !IN_RING3 */ 202 202 } 203 203 … … 215 215 return RTCritSectIsOwner(&pCritSect->s.Core); 216 216 #else 217 PVM pVM = pCritSect->s.CTX ALLSUFF(pVM);217 PVM pVM = pCritSect->s.CTX_SUFF(pVM); 218 218 Assert(pVM); 219 219 return pCritSect->s.Core.NativeThreadOwner == pVM->NativeThreadEMT;
Note:
See TracChangeset
for help on using the changeset viewer.