- Timestamp:
- Jun 7, 2013 12:12:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/STAM.cpp
r46438 r46439 48 48 * Header Files * 49 49 *******************************************************************************/ 50 /*#define USE_PDMCRITSECTRW - testing, not for production. */51 50 #define LOG_GROUP LOG_GROUP_STAM 52 51 #include <VBox/vmm/stam.h> … … 264 263 VMMR3DECL(int) STAMR3InitUVM(PUVM pUVM) 265 264 { 266 int rc;267 265 LogFlow(("STAMR3Init\n")); 268 266 … … 276 274 * Initialize the read/write lock. 277 275 */ 278 rc = RTSemRWCreate(&pUVM->stam.s.RWSem);276 int rc = RTSemRWCreate(&pUVM->stam.s.RWSem); 279 277 AssertRCReturn(rc, rc); 280 278 … … 600 598 STAMTYPE enmType, STAMVISIBILITY enmVisibility, const char *pszName, STAMUNIT enmUnit, const char *pszDesc) 601 599 { 602 STAM_LAZY_INIT(pUVM);603 600 STAM_LOCK_WR(pUVM); 604 601 … … 616 613 #else 617 614 PSTAMDESC pPrev = NULL; 618 PSTAMDESC pCur = pUVM->stam.s.pH int;615 PSTAMDESC pCur = pUVM->stam.s.pHead; 619 616 #endif 620 617 while (pCur)
Note:
See TracChangeset
for help on using the changeset viewer.