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

Method cancelOperation

src/yvalve/why.cpp:6028–6046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6026}
6027
6028void YAttachment::cancelOperation(CheckStatusWrapper* status, int option)
6029{
6030 try
6031 {
6032 YEntry<YAttachment> entry(status, this);
6033
6034 // Mutex will be locked here for a really long time.
6035 MutexLockGuard guard(enterMutex, FB_FUNCTION);
6036
6037 if (enterCount > 1 || option != fb_cancel_raise)
6038 entry.next()->cancelOperation(status, option);
6039 else
6040 status_exception::raise(Arg::Gds(isc_nothing_to_cancel));
6041 }
6042 catch (const Exception& e)
6043 {
6044 e.stuffException(status);
6045 }
6046}
6047
6048void YAttachment::ping(CheckStatusWrapper* status)
6049{

Callers 1

Calls 4

raiseFunction · 0.85
GdsClass · 0.85
nextMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected