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
4a283330
Commit
4a283330
authored
Feb 04, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/Loop: remove the dummy constructor argument
parent
ad7f2b2a
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
10 deletions
+8
-10
Main.cxx
src/Main.cxx
+1
-1
Loop.cxx
src/event/Loop.cxx
+1
-1
Loop.hxx
src/event/Loop.hxx
+1
-3
read_mixer.cxx
test/read_mixer.cxx
+1
-1
run_avahi.cxx
test/run_avahi.cxx
+1
-1
run_inotify.cxx
test/run_inotify.cxx
+1
-1
run_neighbor_explorer.cxx
test/run_neighbor_explorer.cxx
+1
-1
run_output.cxx
test/run_output.cxx
+1
-1
No files found.
src/Main.cxx
View file @
4a283330
...
...
@@ -411,7 +411,7 @@ int mpd_main(int argc, char *argv[])
}
main_thread
=
ThreadId
::
GetCurrent
();
main_loop
=
new
EventLoop
(
EventLoop
::
Default
()
);
main_loop
=
new
EventLoop
();
instance
=
new
Instance
();
...
...
src/event/Loop.cxx
View file @
4a283330
...
...
@@ -28,7 +28,7 @@
#include <algorithm>
EventLoop
::
EventLoop
(
Default
)
EventLoop
::
EventLoop
()
:
SocketMonitor
(
*
this
),
now_ms
(
::
MonotonicClockMS
()),
quit
(
false
),
busy
(
true
),
...
...
src/event/Loop.hxx
View file @
4a283330
...
...
@@ -115,9 +115,7 @@ class EventLoop final : SocketMonitor
ThreadId
thread
;
public
:
struct
Default
{};
EventLoop
(
Default
dummy
=
Default
());
EventLoop
();
~
EventLoop
();
/**
...
...
test/read_mixer.cxx
View file @
4a283330
...
...
@@ -115,7 +115,7 @@ int main(int argc, gcc_unused char **argv)
g_thread_init
(
NULL
);
#endif
main_loop
=
new
EventLoop
(
EventLoop
::
Default
())
;
main_loop
=
new
EventLoop
;
Error
error
;
Mixer
*
mixer
=
mixer_new
(
&
alsa_mixer_plugin
,
nullptr
,
...
...
test/run_avahi.cxx
View file @
4a283330
...
...
@@ -29,7 +29,7 @@ unsigned listen_port = 1234;
int
main
(
gcc_unused
int
argc
,
gcc_unused
char
**
argv
)
{
EventLoop
event_loop
((
EventLoop
::
Default
()))
;
EventLoop
event_loop
;
const
ShutdownHandler
shutdown_handler
(
event_loop
);
AvahiInit
(
event_loop
,
"test"
);
...
...
test/run_inotify.cxx
View file @
4a283330
...
...
@@ -51,7 +51,7 @@ int main(int argc, char **argv)
path
=
argv
[
1
];
EventLoop
event_loop
((
EventLoop
::
Default
()))
;
EventLoop
event_loop
;
const
ShutdownHandler
shutdown_handler
(
event_loop
);
Error
error
;
...
...
test/run_neighbor_explorer.cxx
View file @
4a283330
...
...
@@ -66,7 +66,7 @@ main(int argc, char **argv)
/* initialize the core */
EventLoop
loop
((
EventLoop
::
Default
()))
;
EventLoop
loop
;
/* initialize neighbor plugins */
...
...
test/run_output.cxx
View file @
4a283330
...
...
@@ -189,7 +189,7 @@ int main(int argc, char **argv)
return
EXIT_FAILURE
;
}
main_loop
=
new
EventLoop
(
EventLoop
::
Default
()
);
main_loop
=
new
EventLoop
();
io_thread_init
();
io_thread_start
();
...
...
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