Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::SigintHandler Class Reference

#include <sigint.h>

Public Member Functions

 SigintHandler ()
 
 ~SigintHandler ()
 Unregister the SIGINT handler.
 
void Register (const std::function< void()> &f)
 

Detailed Description

Definition at line 21 of file sigint.h.

Constructor & Destructor Documentation

◆ SigintHandler()

operations_research::SigintHandler::SigintHandler ( )
inline

Definition at line 23 of file sigint.h.

◆ ~SigintHandler()

operations_research::SigintHandler::~SigintHandler ( )

Unregister the SIGINT handler.

Definition at line 43 of file sigint.cc.

Member Function Documentation

◆ 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.

Definition at line 23 of file sigint.cc.


The documentation for this class was generated from the following files: