| 298 | { |
| 299 | public: |
| 300 | explicit LockTableGuard(LockManager* lm, const char* f, SRQ_PTR owner = 0) |
| 301 | : m_lm(lm), m_owner(owner) |
| 302 | { |
| 303 | if (!m_lm->m_localMutex.tryEnter(f)) |
| 304 | { |
| 305 | m_lm->m_localMutex.enter(f); |
| 306 | m_lm->m_blockage = true; |
| 307 | } |
| 308 | |
| 309 | if (m_owner) |
| 310 | m_lm->acquire_shmem(m_owner); |
| 311 | } |
| 312 | |
| 313 | ~LockTableGuard() |
| 314 | { |
nothing calls this directly
no test coverage detected