Changeset 19486 in vbox
- Timestamp:
- May 7, 2009 12:57:32 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/TMInternal.h
r19444 r19486 522 522 typedef TMCPU *PTMCPU; 523 523 524 #if 0 /* enable this to rule out locking bugs on single cpu guests. */ 525 # define tmLock(pVM) VINF_SUCCESS 526 # define tmTryLock(pVM) VINF_SUCCESS 527 # define tmUnlock(pVM) ((void)0) 528 # define TM_ASSERT_EMT_LOCK(pVM) VM_ASSERT_EMT(pVM) 529 #else 524 530 int tmLock(PVM pVM); 525 531 int tmTryLock(PVM pVM); … … 527 533 /** Checks that the caller owns the EMT lock. */ 528 534 #define TM_ASSERT_EMT_LOCK(pVM) Assert(PDMCritSectIsOwner(&pVM->tm.s.EmtLock)) 535 #endif 529 536 530 537 const char *tmTimerState(TMTIMERSTATE enmState); -
trunk/src/VBox/VMM/VMMAll/TMAll.cpp
r19444 r19486 45 45 46 46 47 #ifndef tmLock 48 47 49 /** 48 50 * Try take the EMT/TM lock, wait in ring-3 return VERR_SEM_BUSY in R0/RC. … … 87 89 } 88 90 91 #endif /* ! macros */ 89 92 90 93 /**
Note:
See TracChangeset
for help on using the changeset viewer.