summaryrefslogtreecommitdiff
path: root/src/VBox/Frontends/VBoxBalloonCtrl/VBoxWatchdog.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-03-26 19:21:20 +0000
committer <>2014-05-08 15:03:54 +0000
commitfb123f93f9f5ce42c8e5785d2f8e0edaf951740e (patch)
treec2103d76aec5f1f10892cd1d3a38e24f665ae5db /src/VBox/Frontends/VBoxBalloonCtrl/VBoxWatchdog.cpp
parent58ed4748338f9466599adfc8a9171280ed99e23f (diff)
downloadVirtualBox-master.tar.gz
Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2.HEADVirtualBox-4.3.10master
Diffstat (limited to 'src/VBox/Frontends/VBoxBalloonCtrl/VBoxWatchdog.cpp')
-rw-r--r--src/VBox/Frontends/VBoxBalloonCtrl/VBoxWatchdog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/VBox/Frontends/VBoxBalloonCtrl/VBoxWatchdog.cpp b/src/VBox/Frontends/VBoxBalloonCtrl/VBoxWatchdog.cpp
index f22affb1..a74c2bc3 100644
--- a/src/VBox/Frontends/VBoxBalloonCtrl/VBoxWatchdog.cpp
+++ b/src/VBox/Frontends/VBoxBalloonCtrl/VBoxWatchdog.cpp
@@ -4,7 +4,7 @@
*/
/*
- * Copyright (C) 2011-2012 Oracle Corporation
+ * Copyright (C) 2011-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
@@ -27,7 +27,7 @@
# include <VBox/com/ErrorInfo.h>
# include <VBox/com/errorprint.h>
-# include <VBox/com/EventQueue.h>
+# include <VBox/com/NativeEventQueue.h>
# include <VBox/com/listeners.h>
# include <VBox/com/VirtualBox.h>
#endif /* !VBOX_ONLY_DOCS */
@@ -131,7 +131,7 @@ static ComPtr<IVirtualBoxClient> g_pVirtualBoxClient = NULL;
static ComPtr<IEventSource> g_pEventSource = NULL;
static ComPtr<IEventSource> g_pEventSourceClient = NULL;
static ComPtr<IEventListener> g_pVBoxEventListener = NULL;
-static EventQueue *g_pEventQ = NULL;
+static NativeEventQueue *g_pEventQ = NULL;
/* Prototypes. */
static int machineAdd(const Bstr &strUuid);
@@ -296,7 +296,7 @@ static void signalHandler(int iSignal)
NOREF(iSignal);
ASMAtomicWriteBool(&g_fCanceled, true);
- if (!g_pEventQ)
+ if (g_pEventQ)
{
int rc = g_pEventQ->interruptEventQueueProcessing();
if (RT_FAILURE(rc))
@@ -462,7 +462,7 @@ static int machineDestroy(const Bstr &strUuid)
itGroup->first.c_str(), vecMembers.size()));
if (!vecMembers.size())
{
- serviceLogVerbose(("Deleteting group \"%s\n", itGroup->first.c_str()));
+ serviceLogVerbose(("Deleting group \"%s\"\n", itGroup->first.c_str()));
g_mapGroup.erase(itGroup);
}
@@ -684,7 +684,7 @@ static RTEXITCODE watchdogMain(HandlerArg *a)
do
{
/* Initialize global weak references. */
- g_pEventQ = com::EventQueue::getMainEventQueue();
+ g_pEventQ = com::NativeEventQueue::getMainEventQueue();
/*
* Install signal handlers.
@@ -751,7 +751,7 @@ static RTEXITCODE watchdogMain(HandlerArg *a)
* Process pending events, then wait for new ones. Note, this
* processes NULL events signalling event loop termination.
*/
- g_pEventQ->processEventQueue(500 / 10);
+ g_pEventQ->processEventQueue(50);
if (g_fCanceled)
{
@@ -1147,7 +1147,7 @@ int main(int argc, char *argv[])
HandlerArg handlerArg = { argc, argv };
RTEXITCODE rcExit = watchdogMain(&handlerArg);
- EventQueue::getMainEventQueue()->processEventQueue(0);
+ NativeEventQueue::getMainEventQueue()->processEventQueue(0);
watchdogShutdown();