DUNE: Uniform Navigational Environment  2022.04.0
DUNE::IO::Poll Class Reference

Public Member Functions

void add (const NativeHandle &handle)
 
void add (const Handle &handle)
 
void remove (const NativeHandle &handle)
 
void remove (const Handle &handle)
 
bool poll (double timeout)
 
bool wasTriggered (const NativeHandle &handle)
 
bool wasTriggered (const Handle &handle)
 

Static Public Member Functions

static bool poll (const NativeHandle &handle, double timeout)
 
static bool poll (const Handle &handle, double timeout)
 

Member Function Documentation

◆ add() [1/2]

void DUNE::IO::Poll::add ( const NativeHandle handle)

Add native I/O handle to the polling pool.

Parameters
[in]handlenative I/O handle.

Referenced by add(), and poll().

◆ add() [2/2]

void DUNE::IO::Poll::add ( const Handle handle)
inline

Add I/O handle to the polling pool.

Parameters
[in]handleI/O handle.

References add(), and DUNE::IO::Handle::getNative().

◆ poll() [1/3]

◆ poll() [2/3]

static bool DUNE::IO::Poll::poll ( const Handle handle,
double  timeout 
)
inlinestatic

◆ poll() [3/3]

bool DUNE::IO::Poll::poll ( double  timeout)

◆ remove() [1/2]

void DUNE::IO::Poll::remove ( const NativeHandle handle)

Remove native I/O handle from the polling pool.

Parameters
[in]handlenative I/O handle.

◆ remove() [2/2]

void DUNE::IO::Poll::remove ( const Handle handle)
inline

Remove I/O handle from the polling pool.

Parameters
[in]handleI/O handle.

References poll(), and wasTriggered().

◆ wasTriggered() [1/2]

bool DUNE::IO::Poll::wasTriggered ( const NativeHandle handle)

Referenced by remove(), and wasTriggered().

◆ wasTriggered() [2/2]

bool DUNE::IO::Poll::wasTriggered ( const Handle handle)
inline
Collaboration diagram for DUNE::IO::Poll:
Collaboration graph