marble
Go to the documentation of this file.
43 #include <QSignalMapper>
49 m_shutDownHelper =
new QSignalMapper;
50 m_shutDownHelper->setMapping(
this, 0 );
51 connect(
this, SIGNAL(started()),
this, SLOT(setReadyStatus()), Qt::DirectConnection );
52 connect(
this, SIGNAL(
aboutToStop()), m_shutDownHelper, SLOT(map()));
57 delete m_shutDownHelper;
65 m_worker->moveToThread(
this );
66 m_shutDownHelper->moveToThread(
this );
67 connect( m_shutDownHelper, SIGNAL(mapped(
int)),
this, SLOT(stopExecutor()), Qt::DirectConnection );
69 m_waitCondition.wait( &m_mutex );
81 void Thread::stopExecutor()
86 void Thread::setReadyStatus()
88 m_waitCondition.wakeAll();
void launchWorker(QObject *const worker)
Thread(QObject *const parent=NULL)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:53 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.