carb::quickReleaseFrameworkAndTerminate¶
Defined in carb/Framework.h
-
void
carb
::
quickReleaseFrameworkAndTerminate
(int exitCode)¶ Releases the Carbonite framework immediately and exits the process, without running C/C++ atexit() registered functions or static destructors.
This function performs the following sequence:
Calls any exported carbOnPluginQuickShutdown on all loaded plugins, if the framework is acquired. No plugins are unloaded or unregistered.
Calls any registered Framework release hooks (see carb::Framework::addReleaseHook) in reverse order of registration, if the framework is acquired.
Flushes stdout/stderr.
Calls
TerminateProcess()
on Windows or_exit()
on Linux and MacOS.
- Thread Safety
May be called from any thread.
Note
This function does not return.
Warning
This function must not be called from within a DLL, shared object, or plugin.
- Parameters
exitCode – The exit code that the process will exit with.