Changeset 12983 in vbox for trunk/src/VBox/VMM/PDMCritSect.cpp
- Timestamp:
- Oct 4, 2008 10:17:38 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 37416
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMCritSect.cpp
r9154 r12983 1 1 /* $Id$ */ 2 2 /** @file 3 * PDM Critical Sections3 * PDM - Critical Sections, Ring-3. 4 4 */ 5 5 … … 19 19 * additional information or have any questions. 20 20 */ 21 22 21 23 22 … … 71 70 pCur; 72 71 pCur = pCur->pNext) 73 pCur->pVM GC = pVM->pVMGC;72 pCur->pVMRC = pVM->pVMRC; 74 73 } 75 74 … … 117 116 pCritSect->pVMR3 = pVM; 118 117 pCritSect->pVMR0 = (RTR0PTR)pVM;//pVM->pVMR0; 119 pCritSect->pVM GC = pVM->pVMGC;118 pCritSect->pVMRC = pVM->pVMRC; 120 119 pCritSect->pvKey = pvKey; 121 120 pCritSect->EventToSignal = NIL_RTSEMEVENT; … … 123 122 pVM->pdm.s.pCritSects = pCritSect; 124 123 #ifdef VBOX_WITH_STATISTICS 125 STAMR3RegisterF(pVM, &pCritSect->StatContentionR 0GCLock, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, NULL, "/PDM/CritSects/%s/ContentionR0GCLock", pszName);126 STAMR3RegisterF(pVM, &pCritSect->StatContentionR 0GCUnlock, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, NULL, "/PDM/CritSects/%s/ContentionR0GCUnlock", pszName);127 STAMR3RegisterF(pVM, &pCritSect->StatContentionR3, 128 STAMR3RegisterF(pVM, &pCritSect->StatLocked, 124 STAMR3RegisterF(pVM, &pCritSect->StatContentionRZLock, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, NULL, "/PDM/CritSects/%s/ContentionRZLock", pszName); 125 STAMR3RegisterF(pVM, &pCritSect->StatContentionRZUnlock,STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, NULL, "/PDM/CritSects/%s/ContentionRZUnlock", pszName); 126 STAMR3RegisterF(pVM, &pCritSect->StatContentionR3, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, NULL, "/PDM/CritSects/%s/ContentionR3", pszName); 127 STAMR3RegisterF(pVM, &pCritSect->StatLocked, STAMTYPE_PROFILE_ADV, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_OCCURENCE, NULL, "/PDM/CritSects/%s/Locked", pszName); 129 128 #endif 130 129 } … … 191 190 /* delete */ 192 191 pCritSect->pNext = NULL; 193 pCritSect->p VMGC = 0;192 pCritSect->pvKey = NULL; 194 193 pCritSect->pVMR3 = NULL; 195 194 pCritSect->pVMR0 = NIL_RTR0PTR; 196 pCritSect->p vKey = NULL;195 pCritSect->pVMRC = NIL_RTRCPTR; 197 196 #ifdef VBOX_WITH_STATISTICS 198 197 if (!fFinal) 199 198 { 200 STAMR3Deregister(pVM, &pCritSect->StatContentionR 0GCLock);201 STAMR3Deregister(pVM, &pCritSect->StatContentionR 0GCUnlock);199 STAMR3Deregister(pVM, &pCritSect->StatContentionRZLock); 200 STAMR3Deregister(pVM, &pCritSect->StatContentionRZUnlock); 202 201 STAMR3Deregister(pVM, &pCritSect->StatContentionR3); 203 202 STAMR3Deregister(pVM, &pCritSect->StatLocked);
Note:
See TracChangeset
for help on using the changeset viewer.