From 9c118866003277222173ea04916c3e3b82c88b95 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 21 Sep 2010 09:00:46 +0200 Subject: The flag in the socket has clear semantics now -- it tracks whether corresponding context was closed, it doesn't track whether zmq_close was called on the socket itself --- src/socket_base.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/socket_base.hpp') diff --git a/src/socket_base.hpp b/src/socket_base.hpp index 4ba9494..8f662e9 100644 --- a/src/socket_base.hpp +++ b/src/socket_base.hpp @@ -124,10 +124,8 @@ namespace zmq private: - // If true, socket was already closed but not yet deallocated - // because either shutdown is in process or there are still pipes - // attached to the socket. - bool zombie; + // If true, associated context was already terminated. + bool ctx_terminated; // If true, object should have been already destroyed. However, // destruction is delayed while we unwind the stack to the point -- cgit v1.2.3