FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

timer.H File Reference


Detailed Description

Definition in file timer.H.

#include "src/OpenFOAM/db/typeInfo/className.H"
#include <signal.h>
#include <setjmp.h>
Include dependency graph for timer.H:

Go to the source code of this file.

Classes

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

Namespaces

namespace  Foam
 

Namespace for OpenFOAM.


Defines

#define  timedOut(x)   (((x).newTimeOut_ > 0) ? setjmp(Foam::timer::envAlarm) : false)
 check it a timeout has occured

Define Documentation

#define timedOut (   x  )    (((x).newTimeOut_ > 0) ? setjmp(Foam::timer::envAlarm) : false)

check it a timeout has occured

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().