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

Function API_ROUTINE fb_shutdown

src/yvalve/why.cpp:3783–3792  ·  view source on GitHub ↗

Shutdown firebird.

Source from the content-addressed store, hash-verified

3781
3782// Shutdown firebird.
3783int API_ROUTINE fb_shutdown(unsigned int timeout, const int reason)
3784{
3785 StatusVector status(NULL);
3786 CheckStatusWrapper statusWrapper(&status);
3787
3788 RefPtr<Dispatcher> dispatcher(FB_NEW Dispatcher);
3789
3790 dispatcher->shutdown(&statusWrapper, timeout, reason);
3791 return (status.getState() & IStatus::STATE_ERRORS) ? FB_FAILURE : FB_SUCCESS;
3792}
3793
3794
3795// Register client callback to be called when FB is going down.

Callers

nothing calls this directly

Calls 2

shutdownMethod · 0.45
getStateMethod · 0.45

Tested by

no test coverage detected