Implements a timeout mechanism via sigalarm. More...
Public Member Functions | |
ClassName ("timer") | |
timer (unsigned int seconds) | |
~timer () | |
Public Attributes | |
unsigned int | timeOut_ |
Static Public Attributes | |
static jmp_buf | envAlarm |
Implements a timeout mechanism via sigalarm.
Constructor set signal handler on sigalarm and alarm(). Destructor clears these.
|
explicit |
Definition at line 55 of file timer.C.
References Foam::abort(), DebugInFunction, Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::setHandler(), and timer::timeOut_.
~timer | ( | ) |
Definition at line 89 of file timer.C.
References DebugInFunction, Foam::endl(), and Foam::resetHandler().
ClassName | ( | "timer" | ) |
unsigned int timeOut_ |
Definition at line 104 of file timer.H.
Referenced by timer::timer().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.