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

Function LCK_cancel_wait

src/jrd/lck.cpp:411–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409
410
411bool LCK_cancel_wait(Jrd::Attachment* attachment)
412{
413/**************************************
414 *
415 * L C K _ c a n c e l _ w a i t
416 *
417 **************************************
418 *
419 * Functional description
420 * Try to cancel waiting of attachment inside the LM.
421 *
422 **************************************/
423 Database *dbb = attachment->att_database;
424
425 const SLONG owner_offset = attachment->att_wait_owner_handle;
426 if (owner_offset)
427 return dbb->lockManager()->cancelWait(owner_offset);
428
429 return false;
430}
431
432
433void LCK_downgrade(thread_db* tdbb, Lock* lock)

Callers 2

signalCancelMethod · 0.85
signalShutdownMethod · 0.85

Calls 2

cancelWaitMethod · 0.80
lockManagerMethod · 0.80

Tested by

no test coverage detected