VirtualBox

Changeset 19486 in vbox


Ignore:
Timestamp:
May 7, 2009 12:57:32 PM (16 years ago)
Author:
vboxsync
Message:

TM: Added lock stubbing for debugging purposes (disabled).

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/TMInternal.h

    r19444 r19486  
    522522typedef TMCPU *PTMCPU;
    523523
     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
    524530int                     tmLock(PVM pVM);
    525531int                     tmTryLock(PVM pVM);
     
    527533/** Checks that the caller owns the EMT lock.  */
    528534#define TM_ASSERT_EMT_LOCK(pVM) Assert(PDMCritSectIsOwner(&pVM->tm.s.EmtLock))
     535#endif
    529536
    530537const char             *tmTimerState(TMTIMERSTATE enmState);
  • trunk/src/VBox/VMM/VMMAll/TMAll.cpp

    r19444 r19486  
    4545
    4646
     47#ifndef tmLock
     48
    4749/**
    4850 * Try take the EMT/TM lock, wait in ring-3 return VERR_SEM_BUSY in R0/RC.
     
    8789}
    8890
     91#endif /* ! macros */
    8992
    9093/**
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