From f99b8fc921bc0e6aa55276d8c55e43c9d7f4375a Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sun, 20 Sep 2009 10:47:27 +0200 Subject: receiving side of signaler virtualised --- src/ypollset.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ypollset.cpp') diff --git a/src/ypollset.cpp b/src/ypollset.cpp index a90d042..5a7c69f 100644 --- a/src/ypollset.cpp +++ b/src/ypollset.cpp @@ -30,7 +30,7 @@ void zmq::ypollset_t::signal (int signal_) sem.post (); } -zmq::ypollset_t::signals_t zmq::ypollset_t::poll () +uint64_t zmq::ypollset_t::poll () { signals_t result = 0; while (!result) { @@ -47,10 +47,10 @@ zmq::ypollset_t::signals_t zmq::ypollset_t::poll () // operation (set and reset). In such case looping can occur // sporadically. } - return result; + return (uint64_t) result; } -zmq::ypollset_t::signals_t zmq::ypollset_t::check () +uint64_t zmq::ypollset_t::check () { - return bits.xchg (0); + return (uint64_t) bits.xchg (0); } -- cgit v1.2.3