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

Method lock

src/common/classes/RefMutex.h:172–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 { }
171
172 void lock(Mutex* aLock, RefCounted* aRef)
173 {
174 fb_assert(aLock);
175 fb_assert(!m_lock);
176 m_lock = aLock;
177 fb_assert(aRef);
178 fb_assert(!m_ref);
179 m_ref = aRef;
180
181 m_lock->enter(m_from);
182 m_ref->assertNonZero();
183 m_ref->addRef();
184 }
185
186 ~LateRefGuard()
187 {

Callers

nothing calls this directly

Calls 3

assertNonZeroMethod · 0.80
enterMethod · 0.45
addRefMethod · 0.45

Tested by

no test coverage detected