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
77d3d7b4
Commit
77d3d7b4
authored
May 05, 2016
by
Doron Somech
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
problem:Socket try to access closed mutex
parent
a6e8d153
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
socket_base.cpp
src/socket_base.cpp
+1
-3
No files found.
src/socket_base.cpp
View file @
77d3d7b4
...
...
@@ -1282,7 +1282,7 @@ int zmq::socket_base_t::recv (msg_t *msg_, int flags_)
int
zmq
::
socket_base_t
::
close
()
{
ENTER_MUTEX
();
// Remove all existing signalers for thread safe sockets
if
(
thread_safe
)
((
mailbox_safe_t
*
)
mailbox
)
->
clear_signalers
();
...
...
@@ -1514,14 +1514,12 @@ void zmq::socket_base_t::in_event ()
// of the reaper thread. Process any commands from other threads/sockets
// that may be available at the moment. Ultimately, the socket will
// be destroyed.
ENTER_MUTEX
();
// If the socket is thread safe we need to unsignal the reaper signaler
if
(
thread_safe
)
reaper_signaler
->
recv
();
process_commands
(
0
,
false
);
EXIT_MUTEX
();
check_destroy
();
}
...
...
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