summaryrefslogtreecommitdiff
path: root/src/i_signaler.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-09-20 10:47:27 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-09-20 10:47:27 +0200
commitf99b8fc921bc0e6aa55276d8c55e43c9d7f4375a (patch)
tree2201248b8fb13ec7d2831b74b349a61fd1e07fa4 /src/i_signaler.hpp
parent50a8b9ea0c4a819073b46449dee8fc839b837ae5 (diff)
receiving side of signaler virtualised
Diffstat (limited to 'src/i_signaler.hpp')
-rw-r--r--src/i_signaler.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/i_signaler.hpp b/src/i_signaler.hpp
index adf54e5..729b5b7 100644
--- a/src/i_signaler.hpp
+++ b/src/i_signaler.hpp
@@ -20,6 +20,8 @@
#ifndef __ZMQ_I_SIGNALER_HPP_INCLUDED__
#define __ZMQ_I_SIGNALER_HPP_INCLUDED__
+#include "stdint.hpp"
+
namespace zmq
{
// Virtual interface used to send signals. Individual implementations
@@ -31,6 +33,15 @@ namespace zmq
// Send a signal with a specific ID.
virtual void signal (int signal_) = 0;
+
+ // Wait for signal. Returns a set of signals in form of a bitmap.
+ // Signal with index 0 corresponds to value 1, index 1 to value 2,
+ // index 2 to value 3 etc.
+ uint64_t poll ();
+
+ // Same as poll, however, if there is no signal available,
+ // function returns zero immediately instead of waiting for a signal.
+ uint64_t check ();
};
}