OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

timer.H File Reference

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

Detailed Description

Original source file timer.H

Definition in file timer.H.


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 69 of file timer.H.

Copyright © 2000-2009 OpenCFD Ltd