diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-09-19 21:40:26 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-09-19 21:40:26 +0200 |
commit | 938689a49128ca17d2bc9662f311c6dbb70240db (patch) | |
tree | d709fdb4b0fb2c7b8fcb22f58e53c7f7d9eb16af /src/zmq_init.cpp | |
parent | 471013a59fc7f41b694c0bc0b11a459d4c19700d (diff) |
synchronisation problem fixed in ctx_t
Diffstat (limited to 'src/zmq_init.cpp')
-rw-r--r-- | src/zmq_init.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/zmq_init.cpp b/src/zmq_init.cpp index 3c8f288..ee5741a 100644 --- a/src/zmq_init.cpp +++ b/src/zmq_init.cpp @@ -139,7 +139,10 @@ void zmq::zmq_init_t::finalise_initialisation () if (sent && received) { // If we know what session we belong to, it's easy, just send the - // engine to that session and destroy the init object. + // engine to that session and destroy the init object. Note that we + // know about the session only if this object is owned by it. Thus, + // lifetime of this object in contained in the lifetime of the session + // so the pointer cannot become invalid without notice. if (session) { engine->unplug (); send_attach (session, engine, peer_identity, true); |