Changeset 8019 in vbox
- Timestamp:
- Apr 16, 2008 10:11:19 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 29678
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/AutoLock.cpp
r7992 r8019 57 57 if (mWriteLockThread != RTThreadSelf()) 58 58 { 59 if (mReadLockCount != 0 || mWriteLockThread != NIL_RTTHREAD) 59 if (mReadLockCount != 0 || mWriteLockThread != NIL_RTTHREAD || 60 mWriteLockPending != 0 /* respect other pending writers */) 60 61 { 61 62 /* wait until all read locks or another write lock is released */ … … 68 69 } 69 70 71 Assert (mWriteLockLevel == 0); 70 72 Assert (mWriteLockThread == NIL_RTTHREAD); 73 71 74 mWriteLockThread = RTThreadSelf(); 72 75 }
Note:
See TracChangeset
for help on using the changeset viewer.