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

Method lockBegin

src/jrd/CryptoManager.h:207–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 void lockBegin(Jrd::thread_db* tdbb)
208 {
209 Firebird::MutexLockGuard g(mutex, FB_FUNCTION);
210
211 if ((counter -= BIG_VALUE) != -BIG_VALUE)
212 {
213 ++lockMode;
214 try
215 {
216 lockCond.wait(mutex);
217 }
218 catch (const Firebird::Exception&)
219 {
220 --lockMode;
221 throw;
222 }
223 --lockMode;
224 }
225
226 thread = getThreadId();
227 flagWriteLock = true;
228 }
229
230 void lockEnd(Jrd::thread_db* tdbb)
231 {

Callers 1

lockMethod · 0.80

Calls 2

getThreadIdFunction · 0.85
waitMethod · 0.45

Tested by

no test coverage detected