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

Function unlockForegroundMutexInternal

kdevplatform/util/foregroundlock.cpp:57–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void unlockForegroundMutexInternal(bool duringDestruction = false)
58{
59 /// Note: QThread::currentThread() might already be invalid during destruction.
60 if (!duringDestruction) {
61 Q_ASSERT(holderThread == QThread::currentThread());
62 }
63
64 Q_ASSERT(recursion > 0);
65 recursion -= 1;
66 if (recursion == 0) {
67 holderThread = nullptr;
68 internalMutex.unlock();
69 }
70}
71}
72
73ForegroundLock::ForegroundLock(bool lock)

Callers 3

unlockMethod · 0.85
~StaticLockMethod · 0.85

Calls 1

unlockMethod · 0.45

Tested by

no test coverage detected