VirtualBox

Changeset 8019 in vbox


Ignore:
Timestamp:
Apr 16, 2008 10:11:19 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29678
Message:

Main: RWLockHandle: Respect other pending writers when requesting a new one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/AutoLock.cpp

    r7992 r8019  
    5757    if (mWriteLockThread != RTThreadSelf())
    5858    {
    59         if (mReadLockCount != 0 || mWriteLockThread != NIL_RTTHREAD)
     59        if (mReadLockCount != 0 || mWriteLockThread != NIL_RTTHREAD ||
     60            mWriteLockPending != 0 /* respect other pending writers */)
    6061        {
    6162            /* wait until all read locks or another write lock is released */
     
    6869        }
    6970
     71        Assert (mWriteLockLevel == 0);
    7072        Assert (mWriteLockThread == NIL_RTTHREAD);
     73
    7174        mWriteLockThread = RTThreadSelf();
    7275    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette