CppELib 1.7.0
Loading...
Searching...
No Matches
OSWrapper::Timeout Class Reference

Value object for the timeout. More...

#include <Timeout.h>

Public Member Functions

 Timeout (long milliseconds)
 Constructor of Timeout.
 
 Timeout (const Timeout &tmout)
 Copy constructor of Timeout.
 
 operator long () const
 Implicit conversion from the Timeout object to integer value.
 

Static Public Attributes

static const Timeout POLLING
 Constant value object for non-blocking.
 
static const Timeout FOREVER
 Constant value object for waiting forever until condition satisfied.
 

Detailed Description

Value object for the timeout.

Note
Used for the parameter of methods that wait for.

Constructor & Destructor Documentation

◆ Timeout() [1/2]

OSWrapper::Timeout::Timeout ( long  milliseconds)
inlineexplicit

Constructor of Timeout.

Parameters
millisecondsSet timeout in milliseconds

◆ Timeout() [2/2]

OSWrapper::Timeout::Timeout ( const Timeout tmout)
inline

Copy constructor of Timeout.

Parameters
tmoutCopy source object

Member Function Documentation

◆ operator long()

OSWrapper::Timeout::operator long ( ) const
inline

Implicit conversion from the Timeout object to integer value.

Member Data Documentation

◆ FOREVER

const Timeout OSWrapper::Timeout::FOREVER
static

Constant value object for waiting forever until condition satisfied.

◆ POLLING

const Timeout OSWrapper::Timeout::POLLING
static

Constant value object for non-blocking.


The documentation for this class was generated from the following files: