VirtualBox

Changeset 26607 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 17, 2010 12:42:37 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57800
Message:

Frontends/VBoxHeadless: register the VirtualBox callback as late as possible. This shouldn't change the behavior, but reduces the risk of deadlocks during startup due to callbacks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r26517 r26607  
    10131013        gEventQ = com::EventQueue::getMainEventQueue();
    10141014
    1015         /* VirtualBox callback registration. */
    1016         vboxCallback = new VirtualBoxCallback();
    1017         vboxCallback->AddRef();
    1018         CHECK_ERROR(virtualBox, RegisterCallback(vboxCallback));
    1019         vboxCallback->Release();
    1020         if (FAILED (rc))
    1021             break;
    1022 
    10231015        /* register a callback for machine events */
    10241016        {
     
    11111103        }
    11121104
     1105        /* VirtualBox callback registration. */
     1106        vboxCallback = new VirtualBoxCallback();
     1107        vboxCallback->AddRef();
     1108        CHECK_ERROR(virtualBox, RegisterCallback(vboxCallback));
     1109        vboxCallback->Release();
     1110        if (FAILED(rc))
     1111            break;
     1112
    11131113#ifdef VBOX_WITH_SAVESTATE_ON_SIGNAL
    11141114        signal(SIGINT, SaveState);
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