VirtualBox

Changeset 30171 in vbox for trunk


Ignore:
Timestamp:
Jun 11, 2010 6:26:06 PM (15 years ago)
Author:
vboxsync
Message:

Webservice: fix ManagedObjectReference::release() which needs a write lock instead of a read lock (leads to sporadic webservice crashes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r30168 r30171  
    15081508
    15091509    do {
    1510         util::AutoReadLock lock(g_pSessionsLockHandle COMMA_LOCKVAL_SRC_POS);
     1510        // findRefFromId needs read lock, and the delete call below requires
     1511        // the write lock, so get the write lock here
     1512        util::AutoWriteLock lock(g_pSessionsLockHandle COMMA_LOCKVAL_SRC_POS);
    15111513
    15121514        ManagedObjectRef *pRef;
Note: See TracChangeset for help on using the changeset viewer.

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