- Timestamp:
- May 11, 2008 2:43:49 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 30736
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/AutoLock.cpp
r8726 r8756 373 373 374 374 /* write locks are top priority, so let them go if they are 375 * pending */376 if (mWriteLockPending != 0 )375 * pending and we're the only reader so far */ 376 if (mWriteLockPending != 0 && isFirstReadLock) 377 377 { 378 378 isWriteLock = true; 379 /* the first postponed reader kicks pending writers */380 if (isFirstReadLock)381 RTSemEventSignal (mGoWriteSem);379 /* note that we must not signal mGoWriteSem here because it 380 * has been already signaled by unlockWrite() or by 381 * unlockRead() */ 382 382 } 383 383 }
Note:
See TracChangeset
for help on using the changeset viewer.