|
TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
|
Helper struct to signal termination on exit. More...
#include <tec_signal.hpp>
Public Member Functions | |
| OnExit (Signal *sig) | |
| Constructs an OnExit helper with a termination signal. | |
| ~OnExit () | |
| Destructor that sets the termination signal. | |
Helper struct to signal termination on exit.
Automatically sets the termination signal when destroyed.
|
inlineexplicit |
Constructs an OnExit helper with a termination signal.
| sig | The termination signal to set on destruction. |