ARPDAS_QNX6 1.0
Public Member Functions | Public Attributes
Timeout Class Reference

#include <Timeout.h>

List of all members.

Public Member Functions

 Timeout ()
void Set (time_t secs, long msecs)
void Clear ()
bool Set ()
bool Expired ()

Public Attributes

struct timespec when

Detailed Description

Definition at line 7 of file Timeout.h.


Constructor & Destructor Documentation

Timeout::Timeout ( )

Definition at line 6 of file Timeout.cc.

References Clear().

Here is the call graph for this function:


Member Function Documentation

void Timeout::Clear ( )

Clears the timeout, indicating no timeout required.

Definition at line 31 of file Timeout.cc.

References when.

Referenced by Timeout().

Here is the caller graph for this function:

bool Timeout::Expired ( )
Returns:
true if a timeout value has been set and has expired.

Definition at line 46 of file Timeout.cc.

References Set(), and when.

Here is the call graph for this function:

bool Timeout::Set ( )
Returns:
true if a timeout value is set.

Definition at line 39 of file Timeout.cc.

References when.

Referenced by Expired().

Here is the caller graph for this function:

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.

Parameters:
secsSeconds
msecsMilleseconds

Definition at line 17 of file Timeout.cc.

References nl_error, and when.


Member Data Documentation

struct timespec Timeout::when

Definition at line 15 of file Timeout.h.

Referenced by Clear(), Expired(), TimeoutAccumulator::Set(), Set(), and TimeoutAccumulator::Set_Min().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines