EventQueue.cpp revision e10758ebe9713be514a99ee043f4b1b48aa40d22
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * Event queue class declaration.
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * Copyright (C) 2013 Oracle Corporation
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * available from http://www.virtualbox.org. This file is free software;
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * you can redistribute it and/or modify it under the terms of the GNU
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * General Public License (GPL) as published by the Free Software
#include "VBox/com/EventQueue.h"
namespace com
: mUserCnt(0),
mShutdown(false)
mUserCnt++;
if (!cNumEvents)
if (mShutdown)
mUserCnt--;
return rc;
return VINF_SUCCESS;
for (size_t i = 0;
i < cNumEvents
if (mShutdown)
return rc;
if (pEvent)
mShutdown = true;
static int s_cBitchedAboutLotEvents = 0;
LogRel(("Warning: Event queue received lots of events (%zu), expect delayed event handling (%d/10)\n",