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

Method blockingAstCancel

src/jrd/Attachment.cpp:973–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

971}
972
973int Jrd::Attachment::blockingAstCancel(void* ast_object)
974{
975 Jrd::Attachment* const attachment = static_cast<Jrd::Attachment*>(ast_object);
976
977 try
978 {
979 Database* const dbb = attachment->att_database;
980
981 AsyncContextHolder tdbb(dbb, FB_FUNCTION, attachment->att_cancel_lock);
982
983 attachment->signalCancel();
984
985 LCK_release(tdbb, attachment->att_cancel_lock);
986 }
987 catch (const Exception&)
988 {} // no-op
989
990 return 0;
991}
992
993int Jrd::Attachment::blockingAstMonitor(void* ast_object)
994{

Callers

nothing calls this directly

Calls 2

LCK_releaseFunction · 0.85
signalCancelMethod · 0.80

Tested by

no test coverage detected