From cc631c4c6649b0d67114db13386a949426e35dbf Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 1 Oct 2009 10:56:17 +0200 Subject: ZMQII-18: Implement I/O multiplexing (first approximation) --- src/ypollset.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ypollset.cpp') diff --git a/src/ypollset.cpp b/src/ypollset.cpp index a72eac7..4e73361 100644 --- a/src/ypollset.cpp +++ b/src/ypollset.cpp @@ -29,6 +29,7 @@ zmq::ypollset_t::~ypollset_t () void zmq::ypollset_t::signal (int signal_) { +printf ("++signal\n"); zmq_assert (signal_ >= 0 && signal_ < wait_signal); if (bits.btsr (signal_, wait_signal)) sem.post (); @@ -58,3 +59,8 @@ uint64_t zmq::ypollset_t::check () { return (uint64_t) bits.xchg (0); } + +zmq::fd_t zmq::ypollset_t::get_fd () +{ + return retired_fd; +} -- cgit v1.2.3 From 4a3b4dadead8fe2af65443d0be4cc8462b9aa597 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 2 Oct 2009 09:42:13 +0200 Subject: ZMQII-9: Check and implement speculative reads & writes --- src/ypollset.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/ypollset.cpp') diff --git a/src/ypollset.cpp b/src/ypollset.cpp index 4e73361..0f0d75f 100644 --- a/src/ypollset.cpp +++ b/src/ypollset.cpp @@ -29,7 +29,6 @@ zmq::ypollset_t::~ypollset_t () void zmq::ypollset_t::signal (int signal_) { -printf ("++signal\n"); zmq_assert (signal_ >= 0 && signal_ < wait_signal); if (bits.btsr (signal_, wait_signal)) sem.post (); -- cgit v1.2.3