diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-02-12 20:03:02 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-02-12 20:03:02 +0100 |
commit | d8430f4b9a43bf8c99854298edc9f1bc35c0e8ec (patch) | |
tree | 4bf5d351b8dace3a4ecdb81ec50ed468dfa5d1d3 /src/dispatcher.cpp | |
parent | 313b5dfadd8753b341197cc109bce40e08856cf6 (diff) |
Multi-hop REQ/REP, part IV., add command deallocation mechanism
Diffstat (limited to 'src/dispatcher.cpp')
-rw-r--r-- | src/dispatcher.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dispatcher.cpp b/src/dispatcher.cpp index 8aafcf8..4233278 100644 --- a/src/dispatcher.cpp +++ b/src/dispatcher.cpp @@ -117,6 +117,10 @@ zmq::dispatcher_t::~dispatcher_t () while (!pipes.empty ()) delete *pipes.begin (); + // TODO: Deallocate any commands still in the pipes. Keep in mind that + // simple reading from a pipe and deallocating commands won't do as + // command pipe has template parameter D set to true, meaning that + // read may return false even if there are still commands in the pipe. delete [] command_pipes; #ifdef ZMQ_HAVE_WINDOWS |