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
ef879782
Commit
ef879782
authored
Dec 01, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/Loop: inline field initializers
parent
5f2797e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
Loop.cxx
src/event/Loop.cxx
+2
-5
Loop.hxx
src/event/Loop.hxx
+2
-2
No files found.
src/event/Loop.cxx
View file @
ef879782
...
...
@@ -46,18 +46,15 @@ EventLoop::EventLoop(
ThreadId
_thread
#endif
)
:
#ifdef HAVE_THREADED_EVENT_LOOP
wake_event
(
*
this
,
BIND_THIS_METHOD
(
OnSocketReady
)),
thread
(
_thread
),
:
thread
(
_thread
),
/* if this instance is hosted by an EventThread (no ThreadId
known yet) then we're not yet alive until the thread is
started; for the main EventLoop instance, we assume it's
already alive, because nobody but EventThread will call
SetAlive() */
alive
(
!
_thread
.
IsNull
())
,
alive
(
!
_thread
.
IsNull
())
#endif
quit
(
false
)
{
#ifdef HAVE_THREADED_EVENT_LOOP
wake_event
.
Open
(
SocketDescriptor
(
wake_fd
.
Get
()));
...
...
src/event/Loop.hxx
View file @
ef879782
...
...
@@ -63,7 +63,7 @@ class EventLoop final
{
#ifdef HAVE_THREADED_EVENT_LOOP
WakeFD
wake_fd
;
SocketEvent
wake_event
;
SocketEvent
wake_event
{
*
this
,
BIND_THIS_METHOD
(
OnSocketReady
)}
;
#endif
struct
TimerCompare
{
...
...
@@ -132,7 +132,7 @@ class EventLoop final
bool
alive
;
#endif
std
::
atomic_bool
quit
;
std
::
atomic_bool
quit
{
false
}
;
/**
* True when the object has been modified and another check is
...
...
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