73 (((x).newTimeOut_ > 0) ? setjmp(Foam::timer::envAlarm) : false)
87 static struct sigaction oldAction_;
90 static unsigned int oldTimeOut_;
96 static void signalHandler(
int);
117 timer(
const unsigned int newTimeOut);
Implements a timeout mechanism via sigalarm.
unsigned int newTimeOut_
Current time out value. Needed by macro timedOut.
static jmp_buf envAlarm
State for setjmp. Needed by macro timedOut.
timer(const unsigned int newTimeOut)
Construct from components.
ClassName("timer")
Declare name of the class and its debug switch.
Macro definitions for declaring ClassName(), NamespaceName(), etc.