23 explicit Worker (
int *val, QThread *main)
31 qDebug () << QThread::currentThread ();
32 QVERIFY (QThread::currentThread () !=
Main_);
37 void Quit (QEventLoop& loop)
39 QTimer::singleShot (0, &loop, &QEventLoop::quit);
43 void WorkerThreadTest::testWorkerThread ()
48 QTimer::singleShot (100, &loop, &QEventLoop::quit);
52 qDebug () << Q_FUNC_INFO << QThread::currentThread ();
55 WorkerThread<Worker> worker { &val, QThread::currentThread () };
56 worker.SetQuitWait (1000);
59 worker.SetPaused (
true);
67 worker.SetPaused (
false);
Worker(int *val, QThread *main)
void Quit(QEventLoop &loop)