Definition at line 38 of file sigint.h.
#include <sigint.h>
◆ SigtermHandler()
operations_research::SigtermHandler::SigtermHandler |
( |
| ) |
|
|
default |
◆ ~SigtermHandler()
operations_research::SigtermHandler::~SigtermHandler |
( |
| ) |
|
Unregister the signal handlers.
Definition at line 63 of file sigint.cc.
◆ Register()
void operations_research::SigtermHandler::Register |
( |
const std::function< void()> & | f | ) |
|
Catches SIGTERM and call f(). It is recommended that f() calls exit() to terminate the program.
Definition at line 53 of file sigint.cc.
The documentation for this class was generated from the following files: