Changeset 28270 in vbox
- Timestamp:
- Apr 13, 2010 6:02:46 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 60012
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/AutoLock.h
r26746 r28270 5 5 6 6 /* 7 * Copyright (C) 2006-20 09Sun Microsystems, Inc.7 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 89 89 void InitAutoLockSystem(); 90 90 91 /** 92 * Check whether the current thread holds any locks in the given class 93 * 94 * @return true if any such locks are held, false otherwise. If the lock 95 * validator is not compiled in, always returns false. 96 * @param lockClass Which lock class to check. 97 */ 98 bool AutoLockHoldsLocksInClass(VBoxLockingClass lockClass); 99 91 100 //////////////////////////////////////////////////////////////////////////////// 92 101 // -
trunk/src/VBox/Main/glue/AutoLock.cpp
r25939 r28270 5 5 6 6 /* 7 * Copyright (C) 2006-20 09Sun Microsystems, Inc.7 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 115 115 AutoWriteLock lock2(critsect2 COMMA_LOCKVAL_SRC_POS);*/ 116 116 #endif 117 } 118 119 bool AutoLockHoldsLocksInClass(VBoxLockingClass lockClass) 120 { 121 #ifdef VBOX_WITH_MAIN_LOCK_VALIDATION 122 return RTLockValidatorHoldsLocksInClass(NIL_RTTHREAD, 123 g_mapLockValidationClasses[lockClass]); 124 #else /* !VBOX_WITH_MAIN_LOCK_VALIDATION */ 125 return false; 126 #endif /* !VBOX_WITH_MAIN_LOCK_VALIDATION */ 117 127 } 118 128
Note:
See TracChangeset
for help on using the changeset viewer.