diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-09-21 09:00:46 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-09-21 09:00:46 +0200 |
commit | 9c118866003277222173ea04916c3e3b82c88b95 (patch) | |
tree | 9400c615af6b00ad3cdd4e231182c84878ca402b /src/socket_base.hpp | |
parent | 4d51a52874b814f65a31a0c1b8e0a36cb671697c (diff) |
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
Diffstat (limited to 'src/socket_base.hpp')
-rw-r--r-- | src/socket_base.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
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 |