VirtualBox

Changeset 37241 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 27, 2011 3:37:48 PM (14 years ago)
Author:
vboxsync
Message:

ConsoleImpl2.cpp: Avoid lock order inversion issue between the VMM state mutex and the console object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r37215 r37241  
    621621 * @return  VBox status code.
    622622 * @param   pVM         The VM handle.
     623 * @param   pAlock      The automatic lock instance.  This is for when we have
     624 *                      to leave it in order to avoid deadlocks (ext packs and
     625 *                      more).
    623626 */
    624627int Console::configConstructorInner(PVM pVM, AutoWriteLock *pAlock)
     
    25942597#undef H
    25952598
     2599    pAlock->release(); /* Avoid triggering the lock order inversion check. */
     2600
    25962601    /*
    25972602     * Register VM state change handler.
     
    26092614    if (RT_SUCCESS(rc))
    26102615        rc = rc2;
     2616
     2617    pAlock->acquire();
    26112618
    26122619    LogFlowFunc(("vrc = %Rrc\n", rc));
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