diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-02-09 22:23:21 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-02-09 22:23:21 +0100 |
commit | 5b82b1ba30d136655c72f116ee2e372ded453952 (patch) | |
tree | 53ea4a7a075ff52fe75af64b908a04cf9001d39b /src/command.hpp | |
parent | 80ac398bba928fa7f245d2e107071677a13185cf (diff) |
Reaper thread waits for commands rather them retrieving them periodically
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/command.hpp')
-rw-r--r-- | src/command.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/command.hpp b/src/command.hpp index ec0850d..d03de2f 100644 --- a/src/command.hpp +++ b/src/command.hpp @@ -47,6 +47,7 @@ namespace zmq term, term_ack, reap, + reaped, done } type; @@ -125,6 +126,10 @@ namespace zmq class socket_base_t *socket; } reap; + // Closed socket notifies the reaper that it's already deallocated. + struct { + } reaped; + // Sent by reaper thread to the term thread when all the sockets // are successfully deallocated. struct { |