Replace incomplete count with a std::set

This commit removes the countdown flag and adds a set to store the pipes
that are currently being disconnected.
This commit is contained in:
Ian Barber
2012-06-12 12:13:21 +01:00
parent 7b10586558
commit 4aa5ba3d11
3 changed files with 15 additions and 22 deletions

View File

@@ -104,8 +104,8 @@ namespace zmq
// Pipe connecting the session to its socket.
zmq::pipe_t *pipe;
// This flag is set if we are disconnecting, but haven't yet completed
int incomplete_detach;
// This set is added to with pipes we are disconnecting, but haven't yet completed
std::set<pipe_t *> incomplete_pipes;
// This flag is true if the remainder of the message being processed
// is still in the in pipe.