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