MCPcopy Create free account
hub / github.com/KDE/kdevelop / doIt

Method doIt

kdevplatform/util/foregroundlock.cpp:192–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190
191namespace KDevelop {
192void DoInForeground::doIt()
193{
194 if (QThread::currentThread() == QCoreApplication::instance()->thread()) {
195 // We're already in the foreground, just call the handler code
196 doInternal();
197 } else {
198 QMutexLocker lock(&m_mutex);
199 QMetaObject::invokeMethod(this, "doInternalSlot", Qt::QueuedConnection);
200 m_wait.wait(&m_mutex);
201 }
202}
203
204DoInForeground::~DoInForeground()
205{

Callers

nothing calls this directly

Calls 2

threadMethod · 0.80
waitMethod · 0.80

Tested by

no test coverage detected