Changeset 40806 in vbox for trunk/src/VBox/Runtime/common/misc/handletable.cpp
- Timestamp:
- Apr 6, 2012 9:05:19 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 77321
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/handletable.cpp
r33540 r40806 103 103 if (fFlags & RTHANDLETABLE_FLAGS_LOCKED) 104 104 { 105 int rc = RTSpinlockCreate(&pThis->hSpinlock );105 int rc = RTSpinlockCreate(&pThis->hSpinlock, RTSPINLOCK_FLAGS_INTERRUPT_UNSAFE, "RTHandleTableCreateEx"); 106 106 if (RT_FAILURE(rc)) 107 107 { … … 127 127 { 128 128 PRTHANDLETABLEINT pThis; 129 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER;130 129 uint32_t i1; 131 130 uint32_t i; … … 145 144 * Then kill the lock. 146 145 */ 147 rtHandleTableLock(pThis , &Tmp);146 rtHandleTableLock(pThis); 148 147 ASMAtomicWriteU32(&pThis->u32Magic, ~RTHANDLETABLE_MAGIC); 149 rtHandleTableUnlock(pThis , &Tmp);148 rtHandleTableUnlock(pThis); 150 149 151 150 if (pThis->hSpinlock != NIL_RTSPINLOCK) 152 151 { 153 rtHandleTableLock(pThis , &Tmp);154 rtHandleTableUnlock(pThis , &Tmp);152 rtHandleTableLock(pThis); 153 rtHandleTableUnlock(pThis); 155 154 156 155 RTSpinlockDestroy(pThis->hSpinlock);
Note:
See TracChangeset
for help on using the changeset viewer.