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
75e945f1
Commit
75e945f1
authored
Jun 06, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: epoll_t employs an unnecessary mutex
Solution: remove the mutex
parent
4a18ed67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
7 deletions
+0
-7
epoll.cpp
src/epoll.cpp
+0
-4
epoll.hpp
src/epoll.hpp
+0
-3
No files found.
src/epoll.cpp
View file @
75e945f1
...
...
@@ -112,9 +112,7 @@ void zmq::epoll_t::rm_fd (handle_t handle_)
int
rc
=
epoll_ctl
(
_epoll_fd
,
EPOLL_CTL_DEL
,
pe
->
fd
,
&
pe
->
ev
);
errno_assert
(
rc
!=
-
1
);
pe
->
fd
=
retired_fd
;
_retired_sync
.
lock
();
_retired
.
push_back
(
pe
);
_retired_sync
.
unlock
();
// Decrease the load metric of the thread.
adjust_load
(
-
1
);
...
...
@@ -209,13 +207,11 @@ void zmq::epoll_t::loop ()
}
// Destroy retired event sources.
_retired_sync
.
lock
();
for
(
retired_t
::
iterator
it
=
_retired
.
begin
();
it
!=
_retired
.
end
();
++
it
)
{
LIBZMQ_DELETE
(
*
it
);
}
_retired
.
clear
();
_retired_sync
.
unlock
();
}
}
...
...
src/epoll.hpp
View file @
75e945f1
...
...
@@ -106,9 +106,6 @@ class epoll_t : public worker_poller_base_t
// Handle of the physical thread doing the I/O work.
thread_t
_worker
;
// Synchronisation of retired event sources
mutex_t
_retired_sync
;
epoll_t
(
const
epoll_t
&
);
const
epoll_t
&
operator
=
(
const
epoll_t
&
);
};
...
...
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