Commit 4cd0f661 authored by Max Kellermann's avatar Max Kellermann

event/Loop: use `using` instead of `typedef`

parent bf270a56
...@@ -64,28 +64,31 @@ class EventLoop final : SocketMonitor ...@@ -64,28 +64,31 @@ class EventLoop final : SocketMonitor
} }
}; };
typedef boost::intrusive::multiset<TimerEvent, using TimerSet =
boost::intrusive::multiset<TimerEvent,
boost::intrusive::member_hook<TimerEvent, boost::intrusive::member_hook<TimerEvent,
TimerEvent::TimerSetHook, TimerEvent::TimerSetHook,
&TimerEvent::timer_set_hook>, &TimerEvent::timer_set_hook>,
boost::intrusive::compare<TimerCompare>, boost::intrusive::compare<TimerCompare>,
boost::intrusive::constant_time_size<false>> TimerSet; boost::intrusive::constant_time_size<false>>;
TimerSet timers; TimerSet timers;
typedef boost::intrusive::list<IdleMonitor, using IdleList =
boost::intrusive::list<IdleMonitor,
boost::intrusive::member_hook<IdleMonitor, boost::intrusive::member_hook<IdleMonitor,
IdleMonitor::ListHook, IdleMonitor::ListHook,
&IdleMonitor::list_hook>, &IdleMonitor::list_hook>,
boost::intrusive::constant_time_size<false>> IdleList; boost::intrusive::constant_time_size<false>>;
IdleList idle; IdleList idle;
Mutex mutex; Mutex mutex;
typedef boost::intrusive::list<DeferEvent, using DeferredList =
boost::intrusive::list<DeferEvent,
boost::intrusive::member_hook<DeferEvent, boost::intrusive::member_hook<DeferEvent,
DeferEvent::ListHook, DeferEvent::ListHook,
&DeferEvent::list_hook>, &DeferEvent::list_hook>,
boost::intrusive::constant_time_size<false>> DeferredList; boost::intrusive::constant_time_size<false>>;
DeferredList deferred; DeferredList deferred;
#ifdef HAVE_URING #ifdef HAVE_URING
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment