| 195 | } |
| 196 | |
| 197 | bool DUChainReadLocker::lock() |
| 198 | { |
| 199 | if (m_locked) { |
| 200 | return true; |
| 201 | } |
| 202 | |
| 203 | bool l = false; |
| 204 | if (m_lock) { |
| 205 | l = m_lock->lockForRead(m_timeout); |
| 206 | Q_ASSERT(m_timeout || l); |
| 207 | } |
| 208 | ; |
| 209 | |
| 210 | m_locked = l; |
| 211 | |
| 212 | return l; |
| 213 | } |
| 214 | |
| 215 | void DUChainReadLocker::unlock() |
| 216 | { |
nothing calls this directly
no test coverage detected