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

Method lockStateRead

src/jrd/nbak.h:408–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406 }
407
408 bool lockStateRead(thread_db* tdbb, SSHORT wait)
409 {
410 if (tdbb->tdbb_flags & TDBB_backup_write_locked)
411 return true;
412
413 localStateLock.beginRead(FB_FUNCTION);
414 if (backup_state == Ods::hdr_nbak_unknown)
415 {
416 if (!stateLock->lockRead(tdbb, wait))
417 {
418 localStateLock.endRead();
419 return false;
420 }
421 stateLock->unlockRead(tdbb);
422 }
423 return true;
424 }
425
426 void unlockStateRead(thread_db* tdbb)
427 {

Callers 3

lockMethod · 0.80
set_diff_pageFunction · 0.80
backupStateReadLockMethod · 0.80

Calls 4

beginReadMethod · 0.80
lockReadMethod · 0.80
endReadMethod · 0.80
unlockReadMethod · 0.80

Tested by

no test coverage detected