ARPDAS_QNX6 1.0
|
#include <Timeout.h>
Public Member Functions | |
Timeout () | |
void | Set (time_t secs, long msecs) |
void | Clear () |
bool | Set () |
bool | Expired () |
Public Attributes | |
struct timespec | when |
Timeout::Timeout | ( | ) |
Definition at line 6 of file Timeout.cc.
References Clear().
void Timeout::Clear | ( | ) |
Clears the timeout, indicating no timeout required.
Definition at line 31 of file Timeout.cc.
References when.
Referenced by Timeout().
bool Timeout::Expired | ( | ) |
Definition at line 46 of file Timeout.cc.
bool Timeout::Set | ( | ) |
Definition at line 39 of file Timeout.cc.
References when.
Referenced by Expired().
void Timeout::Set | ( | time_t | secs, |
long | msecs | ||
) |
Specifies a desired timeout relative to the current time. The event loop will subtract the then-current time to determine the correct relative timeout value.
secs | Seconds |
msecs | Milleseconds |
Definition at line 17 of file Timeout.cc.
struct timespec Timeout::when |
Definition at line 15 of file Timeout.h.
Referenced by Clear(), Expired(), TimeoutAccumulator::Set(), Set(), and TimeoutAccumulator::Set_Min().