From 5b82b1ba30d136655c72f116ee2e372ded453952 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Wed, 9 Feb 2011 22:23:21 +0100 Subject: Reaper thread waits for commands rather them retrieving them periodically Signed-off-by: Martin Sustrik --- src/command.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/command.hpp') 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 { -- cgit v1.2.3