Definition at line 22 of file sigint.h.
#include <sigint.h>
◆ SigintHandler()
operations_research::SigintHandler::SigintHandler |
( |
| ) |
|
|
default |
◆ ~SigintHandler()
operations_research::SigintHandler::~SigintHandler |
( |
| ) |
|
Unregister the signal handlers.
Definition at line 47 of file sigint.cc.
◆ Register()
void operations_research::SigintHandler::Register |
( |
const std::function< void()> & | f | ) |
|
Catches ^C and call f() the first time this happen. If ^C is pressed 3 times, kill the program.
Another thread is already running exit(), do nothing.
Definition at line 24 of file sigint.cc.
The documentation for this class was generated from the following files: