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

Method destroy

src/yvalve/why.cpp:3977–3992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3975}
3976
3977void YEvents::destroy(unsigned dstrFlags)
3978{
3979 YAttachment* att = attachment.release();
3980 if (att)
3981 att->childEvents.remove(this);
3982 removeHandle(&events, handle);
3983
3984 if (!(dstrFlags & DF_RELEASE))
3985 {
3986 const bool allowCancel = destroyed.compareExchange(0, 1);
3987 if (!allowCancel)
3988 return;
3989 }
3990
3991 destroy2(dstrFlags);
3992}
3993
3994void YEvents::cancel(CheckStatusWrapper* status)
3995{

Callers 3

doneFunction · 0.45
executeMethod · 0.45

Calls 10

removeHandleFunction · 0.85
destroy2Function · 0.85
compareExchangeMethod · 0.80
releaseFunction · 0.70
releaseMethod · 0.45
removeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected