libzmq master
The Intelligent Transport Layer
Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes

zmq::poller_base_t Class Reference

#include <poller_base.hpp>

Collaboration diagram for zmq::poller_base_t:

List of all members.

Classes

struct  timer_info_t

Public Member Functions

 poller_base_t ()
virtual ~poller_base_t ()
void add_timer (int timeout_, struct i_poll_events *sink_, int id_)
void cancel_timer (struct i_poll_events *sink_, int id_)
int get_load ()

Protected Member Functions

void adjust_load (int amount_)
uint64_t execute_timers ()

Private Types

typedef std::multimap
< uint64_t, timer_info_t
timers_t

Private Member Functions

 poller_base_t (const poller_base_t &)
const poller_base_toperator= (const poller_base_t &)

Private Attributes

clock_t clock
atomic_counter_t load
timers_t timers

Detailed Description

Definition at line 32 of file poller_base.hpp.


Member Typedef Documentation

typedef std::multimap<uint64_t, timer_info_t> zmq::poller_base_t::timers_t [private]

Definition at line 71 of file poller_base.hpp.


Constructor & Destructor Documentation

zmq::poller_base_t::poller_base_t ( )

Definition at line 25 of file poller_base.cpp.

zmq::poller_base_t::~poller_base_t ( ) [virtual]

Definition at line 29 of file poller_base.cpp.

References zmq_assert.

zmq::poller_base_t::poller_base_t ( const poller_base_t ) [private]

Member Function Documentation

void zmq::poller_base_t::add_timer ( int  timeout_,
struct i_poll_events sink_,
int  id_ 
)

Definition at line 48 of file poller_base.cpp.

void zmq::poller_base_t::adjust_load ( int  amount_) [protected]

Definition at line 40 of file poller_base.cpp.

void zmq::poller_base_t::cancel_timer ( struct i_poll_events sink_,
int  id_ 
)

Definition at line 55 of file poller_base.cpp.

References zmq_assert.

uint64_t zmq::poller_base_t::execute_timers ( ) [protected]

Definition at line 68 of file poller_base.cpp.

int zmq::poller_base_t::get_load ( )

Definition at line 35 of file poller_base.cpp.

const poller_base_t& zmq::poller_base_t::operator= ( const poller_base_t ) [private]

Member Data Documentation

Definition at line 63 of file poller_base.hpp.

Definition at line 76 of file poller_base.hpp.

Definition at line 72 of file poller_base.hpp.


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