Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
0f9ef250
Commit
0f9ef250
authored
Jan 04, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/Loop: remove unused method AddCall()
parent
1f119597
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
28 deletions
+0
-28
Loop.cxx
src/event/Loop.cxx
+0
-19
Loop.hxx
src/event/Loop.hxx
+0
-9
No files found.
src/event/Loop.cxx
View file @
0f9ef250
...
...
@@ -194,16 +194,6 @@ EventLoop::Run()
#ifdef USE_INTERNAL_EVENTLOOP
void
EventLoop
::
AddCall
(
std
::
function
<
void
()
>
&&
f
)
{
mutex
.
lock
();
calls
.
push_back
(
f
);
mutex
.
unlock
();
wake_fd
.
Write
();
}
void
EventLoop
::
AddDeferred
(
DeferredMonitor
&
d
)
{
mutex
.
lock
();
...
...
@@ -262,15 +252,6 @@ EventLoop::OnSocketReady(gcc_unused unsigned flags)
mutex
.
lock
();
}
while
(
!
calls
.
empty
()
&&
!
quit
)
{
auto
f
=
std
::
move
(
calls
.
front
());
calls
.
pop_front
();
mutex
.
unlock
();
f
();
mutex
.
lock
();
}
mutex
.
unlock
();
return
true
;
...
...
src/event/Loop.hxx
View file @
0f9ef250
...
...
@@ -30,7 +30,6 @@
#include "WakeFD.hxx"
#include "SocketMonitor.hxx"
#include <functional>
#include <list>
#include <set>
#endif
...
...
@@ -91,7 +90,6 @@ class EventLoop final
std
::
list
<
IdleMonitor
*>
idle
;
Mutex
mutex
;
std
::
list
<
std
::
function
<
void
()
>>
calls
;
std
::
list
<
DeferredMonitor
*>
deferred
;
unsigned
now_ms
;
...
...
@@ -157,13 +155,6 @@ public:
void
CancelTimer
(
TimeoutMonitor
&
t
);
/**
* Schedule a function to be called inside the thread.
*
* This method is thread-safe.
*/
void
AddCall
(
std
::
function
<
void
()
>
&&
f
);
/**
* Schedule a call to DeferredMonitor::RunDeferred().
*
* This method is thread-safe.
...
...
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