VirtualBox

Ignore:
Timestamp:
Jun 19, 2013 11:47:32 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86538
Message:

Forward ported r85941 and required build fixes (Main: Implemented new event queue to separate system's native event queue and our own. Also, XPCOM is not needed for handling our own events. On Windows this also fixes the system's queue quota limitation).

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox

  • trunk/src/VBox/Frontends

  • trunk/src/VBox/Frontends/VBoxHeadless

  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r45373 r46649  
    2222#include <VBox/com/ErrorInfo.h>
    2323#include <VBox/com/errorprint.h>
    24 #include <VBox/com/EventQueue.h>
     24#include <VBox/com/NativeEventQueue.h>
    2525
    2626#include <VBox/com/VirtualBox.h>
     
    7474/* global weak references (for event handlers) */
    7575static IConsole *gConsole = NULL;
    76 static EventQueue *gEventQ = NULL;
     76static NativeEventQueue *gEventQ = NULL;
    7777
    7878/* flag whether frontend should terminate */
     
    194194                    AssertComRC(hrc);
    195195
     196                    Bstr strValue;
     197                    hrc = pChangedEvent->COMGETTER(Value)(strValue.asOutParam());
     198                    AssertComRC(hrc);
     199
    196200                    Utf8Str utf8Key = strKey;
    197                     LogRelFlow(("Guest property \"%s\" has been changed\n", utf8Key.c_str()));
     201                    Utf8Str utf8Value = strValue;
     202                    LogRelFlow(("Guest property \"%s\" has been changed to \"%s\"\n",
     203                                utf8Key.c_str(), utf8Value.c_str()));
    198204
    199205                    if (utf8Key.equals("/VirtualBox/GuestInfo/OS/NoLoggedInUsers"))
    200206                    {
    201                         Bstr strValue;
    202                         pChangedEvent->COMGETTER(Value)(strValue.asOutParam());
    203                         Utf8Str utf8Value = strValue;
    204 
    205207                        LogRelFlow(("Guest indicates that there %s logged in users\n",
    206208                                    utf8Value.equals("true") ? "are no" : "are"));
     
    11031105        /* initialize global references */
    11041106        gConsole = console;
    1105         gEventQ = com::EventQueue::getMainEventQueue();
     1107        gEventQ = com::NativeEventQueue::getMainEventQueue();
    11061108
    11071109        /* VirtualBoxClient events registration. */
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