summaryrefslogtreecommitdiff
path: root/src/ypollset.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ypollset.hpp')
-rw-r--r--src/ypollset.hpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/ypollset.hpp b/src/ypollset.hpp
index b49581a..296201a 100644
--- a/src/ypollset.hpp
+++ b/src/ypollset.hpp
@@ -35,25 +35,19 @@ namespace zmq
{
public:
- typedef atomic_bitmap_t::bitmap_t signals_t;
-
// Create the pollset.
ypollset_t ();
- // Send a signal to the pollset (i_singnaler implementation).
+ // i_signaler interface implementation.
void signal (int signal_);
-
- // 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.
- signals_t poll ();
-
- // Same as poll, however, if there is no signal available,
- // function returns zero immediately instead of waiting for a signal.
- signals_t check ();
+ uint64_t poll ();
+ uint64_t check ();
private:
+ // Internal representation of signal bitmap.
+ typedef atomic_bitmap_t::bitmap_t signals_t;
+
// Wait signal is carried in the most significant bit of integer.
enum {wait_signal = sizeof (signals_t) * 8 - 1};