MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE fb_cancel_operation

Function API_ROUTINE fb_cancel_operation

src/yvalve/why.cpp:1794–1811  ·  view source on GitHub ↗

Try to cancel an operation.

Source from the content-addressed store, hash-verified

1792
1793// Try to cancel an operation.
1794ISC_STATUS API_ROUTINE fb_cancel_operation(ISC_STATUS* userStatus, isc_db_handle* handle,
1795 USHORT option)
1796{
1797 StatusVector status(userStatus);
1798 CheckStatusWrapper statusWrapper(&status);
1799
1800 try
1801 {
1802 RefPtr<YAttachment> attachment(translateHandle(attachments, handle));
1803 attachment->cancelOperation(&statusWrapper, option);
1804 }
1805 catch (const Exception& e)
1806 {
1807 e.stuffException(&statusWrapper);
1808 }
1809
1810 return status[1];
1811}
1812
1813
1814// Close a blob opened either for reading or writing (creation).

Callers

nothing calls this directly

Calls 3

translateHandleFunction · 0.85
cancelOperationMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected