68 LOG(VB_GENERAL, LOG_INFO, QStringLiteral(
"OSX callback thread starting"));
76 m_object->disconnect();
80 LOG(VB_GENERAL, LOG_INFO, QStringLiteral(
"OSX callback thread stopping"));
89 QTimer::singleShot(10, Qt::CoarseTimer,
this, SLOT(Run()));
101 QTimer::singleShot(100, Qt::CoarseTimer,
this, SLOT(Run()));
113 m_createdThread(false)
133 m_createdThread =
true;
140 while (count++ < 10 && !m_thread->isRunning())
141 QThread::msleep(count < 2 ? 10 : 100);
143 if (!m_thread->isRunning())
144 LOG(VB_GENERAL, LOG_WARNING, QStringLiteral(
"OS X callback thread not started yet!"));
149 if (!m_createdThread)
152 m_createdThread =
false;
170 bool m_createdThread;
TorcQThread subclass to run a CFRunLoop.
QAtomicInt gAdminRunLoopRunning(0)
A factory class for automatically running objects outside of the main loop.
#define TORC_ADMIN_CRIT_PRIORITY
CFRunLoopRef gAdminRunLoop
A reference to the global administration CFRunLoop.
A simple class encapusulating a single timer to start the CFRunLoop.
A TorcAdminObject to instanciate the TorcOSXCallbackThread singleton.
friend class TorcRunLoopOSX
#define LOG(_MASK_, _LEVEL_, _STRING_)
A Torc specific wrapper around QThread.