summaryrefslogtreecommitdiff
path: root/src/mailbox.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailbox.hpp')
-rw-r--r--src/mailbox.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mailbox.hpp b/src/mailbox.hpp
index 1b54aac..eb02e39 100644
--- a/src/mailbox.hpp
+++ b/src/mailbox.hpp
@@ -45,10 +45,6 @@ namespace zmq
private:
- // Write & read end of the socketpair.
- fd_t w;
- fd_t r;
-
// Platform-dependent function to create a socketpair.
static int make_socketpair (fd_t *r_, fd_t *w_);
@@ -57,6 +53,14 @@ namespace zmq
// blocking recvs.
int recv_timeout (command_t *cmd_, int timeout_);
+ // Write & read end of the socketpair.
+ fd_t w;
+ fd_t r;
+
+ // Used on platforms where there's no MSG_DONTWAIT functionality.
+ // True if the read socket is set to the blocking state.
+ bool blocking;
+
// Disable copying of mailbox_t object.
mailbox_t (const mailbox_t&);
const mailbox_t &operator = (const mailbox_t&);