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
e3270dfd
Commit
e3270dfd
authored
Oct 18, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/SocketEvent: use class IntrusiveList<>
parent
a14997ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
Loop.hxx
src/event/Loop.hxx
+1
-4
SocketEvent.hxx
src/event/SocketEvent.hxx
+3
-3
No files found.
src/event/Loop.hxx
View file @
e3270dfd
...
...
@@ -91,10 +91,7 @@ class EventLoop final
DeferredList
deferred
;
#endif
using
SocketList
=
boost
::
intrusive
::
list
<
SocketEvent
,
boost
::
intrusive
::
base_hook
<
boost
::
intrusive
::
list_base_hook
<
boost
::
intrusive
::
link_mode
<
boost
::
intrusive
::
auto_unlink
>>>
,
boost
::
intrusive
::
constant_time_size
<
false
>>
;
using
SocketList
=
IntrusiveList
<
SocketEvent
>
;
/**
* A list of scheduled #SocketEvent instances, without those
...
...
src/event/SocketEvent.hxx
View file @
e3270dfd
...
...
@@ -23,8 +23,7 @@
#include "PollGroup.hxx"
#include "net/SocketDescriptor.hxx"
#include "util/BindMethod.hxx"
#include <boost/intrusive/list_hook.hpp>
#include "util/IntrusiveList.hxx"
#include <cassert>
#include <cstddef>
...
...
@@ -45,8 +44,9 @@ class EventLoop;
* thread that runs the #EventLoop, except where explicitly documented
* as thread-safe.
*/
class
SocketEvent
final
:
public
boost
::
intrusive
::
list_base_hook
<
boost
::
intrusive
::
link_mode
<
boost
::
intrusive
::
auto_unlink
>>
{
class
SocketEvent
final
:
IntrusiveListHook
{
friend
class
EventLoop
;
friend
class
IntrusiveList
<
SocketEvent
>
;
EventLoop
&
loop
;
...
...
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