MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / LockTableGuard

Method LockTableGuard

src/lock/lock_proto.h:300–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

acquire_shmemMethod · 0.80
tryEnterMethod · 0.45
enterMethod · 0.45

Tested by

no test coverage detected