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

Method currentThreadHasWriteLock

kdevplatform/language/duchain/duchainlock.cpp:172–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172bool DUChainLock::currentThreadHasWriteLock() const
173{
174 Q_D(const DUChainLock);
175
176 return d->m_writer.loadRelaxed() == QThread::currentThread();
177}
178
179DUChainReadLocker::DUChainReadLocker(DUChainLock* duChainLock, uint timeout)
180 : m_lock(duChainLock ? duChainLock : DUChain::lock())

Callers 2

doMoreCleanupMethod · 0.80
waitForUpdateMethod · 0.80

Calls 1

loadRelaxedMethod · 0.80

Tested by

no test coverage detected