| 971 | } |
| 972 | |
| 973 | int 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 | |
| 993 | int Jrd::Attachment::blockingAstMonitor(void* ast_object) |
| 994 | { |
nothing calls this directly
no test coverage detected