| 951 | } |
| 952 | |
| 953 | int Jrd::Attachment::blockingAstShutdown(void* ast_object) |
| 954 | { |
| 955 | Jrd::Attachment* const attachment = static_cast<Jrd::Attachment*>(ast_object); |
| 956 | |
| 957 | try |
| 958 | { |
| 959 | Database* const dbb = attachment->att_database; |
| 960 | |
| 961 | AsyncContextHolder tdbb(dbb, FB_FUNCTION, attachment->att_id_lock); |
| 962 | |
| 963 | attachment->signalShutdown(isc_att_shut_killed); |
| 964 | |
| 965 | JRD_shutdown_attachment(attachment); |
| 966 | } |
| 967 | catch (const Exception&) |
| 968 | {} // no-op |
| 969 | |
| 970 | return 0; |
| 971 | } |
| 972 | |
| 973 | int Jrd::Attachment::blockingAstCancel(void* ast_object) |
| 974 | { |
nothing calls this directly
no test coverage detected