Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
938689a4
Commit
938689a4
authored
Sep 19, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
synchronisation problem fixed in ctx_t
parent
471013a5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ctx.cpp
src/ctx.cpp
+2
-0
zmq_init.cpp
src/zmq_init.cpp
+4
-1
No files found.
src/ctx.cpp
View file @
938689a4
...
...
@@ -108,8 +108,10 @@ int zmq::ctx_t::terminate ()
{
// First send stop command to sockets so that any
// blocking calls are interrupted.
slot_sync
.
lock
();
for
(
sockets_t
::
size_type
i
=
0
;
i
!=
sockets
.
size
();
i
++
)
sockets
[
i
]
->
stop
();
slot_sync
.
unlock
();
// Close the logging infrastructure.
log_sync
.
lock
();
...
...
src/zmq_init.cpp
View file @
938689a4
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment