MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / timer

Class timer

src/OSspecific/POSIX/timer.H:82–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80\*---------------------------------------------------------------------------*/
81
82class timer
83{
84 // Private data
85
86 //- Old signal masks
87 static struct sigaction oldAction_;
88
89 //- Old alarm() value
90 static unsigned int oldTimeOut_;
91
92
93 // Private Member Functions
94
95 //- Alarm handler
96 static void signalHandler(int);
97
98
99public:
100
101 // Public data
102
103 //- Declare name of the class and its debug switch
104 ClassName("timer");
105
106 //- Current time out value. Needed by macro timedOut
107 unsigned int newTimeOut_;
108
109 //- State for setjmp. Needed by macro timedOut
110 static jmp_buf envAlarm;
111
112
113 // Constructors
114
115 //- Construct from components.
116 // newTimeOut=0 makes it do nothing.
117 timer(const unsigned int newTimeOut);
118
119
120 //- Destructor
121 ~timer();
122};
123
124
125// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Callers 1

timer.CFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected