14 #include "boost/bind.hpp"
27 QMutexLocker sentry(&mActionsMutex);
28 mPendingActions.push_back(action);
31 this->invokePendingAction();
34 void ThreadMethodInvoker::invokePendingAction()
36 QMetaObject::invokeMethod(
this,
"pendingAction", Qt::QueuedConnection);
39 void ThreadMethodInvoker::pendingAction()
41 while (this->executeAction());
44 bool ThreadMethodInvoker::executeAction()
56 QMutexLocker sentry(&mActionsMutex);
59 if (mPendingActions.isEmpty())
62 action = mPendingActions.front();
63 mPendingActions.pop_front();
102 mQueue->callInLogThread(action);
132 int LogThread::getDefaultTimeout(MESSAGE_LEVEL messageLevel)
const