|
stlab 2.3.0
Modern, modular C++ algorithms, data structures, and concurrency primitives
|
Register and run operations that must execute before program exit. More...
Go to the source code of this file.
Typedefs | |
| using | stlab::pre_exit_handler |
| Function type invoked during pre_exit() (must not throw; noexcept with C++17 and later). | |
Register and run operations that must execute before program exit.
Register handlers with at_pre_exit(); call pre_exit() once before normal process termination (before std::exit() or when leaving main()). Handlers run in reverse registration order. Required when using the default executor so detached or canceled tasks do not overlap global teardown (see default_executor.hpp). std::quick_exit() is an alternative when appropriate.