VirtualBox

Changeset 28763 in vbox for trunk/src


Ignore:
Timestamp:
Apr 26, 2010 4:04:29 PM (15 years ago)
Author:
vboxsync
Message:

Webservice: add missing lock (fixes assertion in logoff and possible race)

File:
1 edited

Legend:

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

    r27743 r28763  
    16561656
    16571657    do {
     1658        // findSessionFromRef needs read lock, and the session destructor requires
     1659        // the write lock, so get the write lock here
     1660        util::AutoWriteLock lock(g_pSessionsLockHandle COMMA_LOCKVAL_SRC_POS);
     1661
    16581662        WebServiceSession* pSession;
    16591663        if ((pSession = WebServiceSession::findSessionFromRef(req->refIVirtualBox)))
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