Go to the documentation of this file.
73 (((x).newTimeOut_ > 0) ? setjmp(Foam::timer::envAlarm) : false)
117 timer(
const unsigned int newTimeOut);
static void signalHandler(int)
Alarm handler.
static unsigned int oldTimeOut_
Old alarm() value.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
#define timedOut(x)
Check it a timeout has occured.
ClassName("timer")
Declare name of the class and its debug switch.
unsigned int newTimeOut_
Current time out value. Needed by macro timedOut.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
static jmp_buf envAlarm
State for setjmp. Needed by macro timedOut.
Implements a timeout mechanism via sigalarm.
static struct sigaction oldAction_
Old signal masks.
timer(const unsigned int newTimeOut)
Construct from components.