new interfaces for timers; the implementation is not changed yet

This commit is contained in:
Martin Sustrik
2010-09-26 18:30:03 +02:00
parent be79a9fbc2
commit cf815e8c78
18 changed files with 48 additions and 42 deletions

View File

@@ -33,8 +33,7 @@
namespace zmq
{
// Implements socket polling mechanism using the Solaris-specific
// "/dev/poll" interface.
// Implements socket polling mechanism using the "/dev/poll" interface.
class devpoll_t
{
@@ -52,8 +51,8 @@ namespace zmq
void reset_pollin (handle_t handle_);
void set_pollout (handle_t handle_);
void reset_pollout (handle_t handle_);
void add_timer (struct i_poll_events *events_);
void cancel_timer (struct i_poll_events *events_);
void add_timer (int timeout_, struct i_poll_events *events_, int id_);
void cancel_timer (struct i_poll_events *events_, int id_);
int get_load ();
void start ();
void stop ();