Loading...
Searching...
No Matches
timer.H File Reference
Include dependency graph for timer.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  timer
 Implements a timeout mechanism via sigalarm. More...

Namespaces

namespace  Foam
 Namespace for OpenFOAM.

Macros

#define timedOut(x)
 Check if timeout has occurred.

Detailed Description

Original source file timer.H

Definition in file timer.H.

Macro Definition Documentation

◆ timedOut

#define timedOut ( x)
Value:
((x).timeOut_ ? setjmp(Foam::timer::envAlarm) : false)
static jmp_buf envAlarm
State for setjmp. Needed by macro timedOut.
Definition timer.H:117

Check if timeout has occurred.

keep setjmp in same stack frame so no function calls

Definition at line 72 of file timer.H.

Referenced by fileStat::fileStat(), and Foam::ping().