Data Structures | Public Member Functions | Static Public Member Functions
eo_cxx::ecore::poller Struct Reference

Data Structures

struct  address_const_of
 
struct  address_of
 

Public Member Functions

int interval_get () const
 Gets the polling interval rate of poller. More...
 
bool interval_set (int interval_) const
 Changes the polling interval rate of poller. More...
 
 operator::ecore::poller () const
 
 operator::ecore::poller & ()
 
 operator::ecore::poller const & () const
 

Static Public Member Functions

static Eo_Class const * _eo_class ()
 

Member Function Documentation

int eo_cxx::ecore::poller::interval_get ( ) const
inline

Gets the polling interval rate of poller.

Returns
Returns the interval, in ticks, that poller polls at.

This returns a poller's polling interval, or 0 on error.

Parameters
intervalThe tick interval to set; must be a power of 2 and <= 32768.
bool eo_cxx::ecore::poller::interval_set ( int  interval_) const
inline

Changes the polling interval rate of poller.

Returns
Returns true on success, false on failure.

This allows the changing of a poller's polling interval. It is useful when you want to alter a poll rate without deleting and re-creating a poller.

Parameters
intervalThe tick interval to set; must be a power of 2 and <= 32768.