util/IntrusiveList: move various static functions to struct IntrusiveListBaseHook

This commit is contained in:
Max Kellermann
2022-06-08 10:31:09 +02:00
committed by Max Kellermann
parent e8e33d5fc4
commit 5348a446a7
4 changed files with 33 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ class EventLoop;
class CoarseTimerEvent final : AutoUnlinkIntrusiveListHook
{
friend class TimerWheel;
friend class IntrusiveList<CoarseTimerEvent>;
friend struct IntrusiveListBaseHookTraits<CoarseTimerEvent>;
EventLoop &loop;

View File

@@ -36,7 +36,7 @@ class EventLoop;
class DeferEvent final : AutoUnlinkIntrusiveListHook
{
friend class EventLoop;
friend class IntrusiveList<DeferEvent>;
friend struct IntrusiveListBaseHookTraits<DeferEvent>;
EventLoop &loop;

View File

@@ -46,7 +46,7 @@ class EventLoop;
class SocketEvent final : IntrusiveListHook, public EventPollBackendEvents
{
friend class EventLoop;
friend class IntrusiveList<SocketEvent>;
friend struct IntrusiveListBaseHookTraits<SocketEvent>;
EventLoop &loop;