VirtualBox

Changeset 29814 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 26, 2010 12:08:52 PM (15 years ago)
Author:
vboxsync
Message:

Webservice: fix more potential races in ManagedObjectRef::InterfaceName() and IManagedObjectRef_release()

File:
1 edited

Legend:

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

    r29805 r29814  
    14721472
    14731473    do {
     1474        util::AutoReadLock lock(g_pSessionsLockHandle COMMA_LOCKVAL_SRC_POS);
     1475
    14741476        ManagedObjectRef *pRef;
    14751477        if (!ManagedObjectRef::findRefFromId(req->_USCOREthis, &pRef, false))
     
    15031505
    15041506    do {
     1507        util::AutoReadLock lock(g_pSessionsLockHandle COMMA_LOCKVAL_SRC_POS);
     1508
    15051509        ManagedObjectRef *pRef;
    15061510        if ((rc = ManagedObjectRef::findRefFromId(req->_USCOREthis, &pRef, false)))
     
    15561560 * client to clean up itself.
    15571561 *
    1558  * Preconditions: Caller must have locked g_mutexSessions.
    1559  * Since this gets called from main() like other SOAP method
    1560  * implementations, this is ensured.
    1561  *
    15621562 * @param
    15631563 * @param vbox__IWebsessionManager_USCORElogon
     
    15851585                                     req->password.c_str())))
    15861586        {
    1587             // in the new session, create a managed object reference (moref) for the
    1588             // global VirtualBox object; this encodes the session ID in the moref so
     1587            // in the new session, create a managed object reference (MOR) for the
     1588            // global VirtualBox object; this encodes the session ID in the MOR so
    15891589            // that it will be implicitly be included in all future requests of this
    15901590            // webservice client
     
    16041604 * Returns the ISession object that was created for the webservice client
    16051605 * on logon.
    1606  *
    1607  * Preconditions: Caller must have locked g_mutexSessions.
    1608  * Since this gets called from main() like other SOAP method
    1609  * implementations, this is ensured.
    16101606 */
    16111607int __vbox__IWebsessionManager_USCOREgetSessionObject(
     
    16371633 * hard-coded implementation for IWebsessionManager::logoff.
    16381634 *
    1639  * Preconditions: Caller must have locked g_mutexSessions.
    1640  * Since this gets called from main() like other SOAP method
    1641  * implementations, this is ensured.
    1642  *
    16431635 * @param
    16441636 * @param vbox__IWebsessionManager_USCORElogon
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