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
}
};
typedef boost::intrusive::multiset<TimerEvent,
using TimerSet =
boost::intrusive::multiset<TimerEvent,
boost::intrusive::member_hook<TimerEvent,
TimerEvent::TimerSetHook,
&TimerEvent::timer_set_hook>,
boost::intrusive::compare<TimerCompare>,
boost::intrusive::constant_time_size<false>> TimerSet;
boost::intrusive::constant_time_size<false>>;
TimerSet timers;
typedef boost::intrusive::list<IdleMonitor,
using IdleList =
boost::intrusive::list<IdleMonitor,
boost::intrusive::member_hook<IdleMonitor,
IdleMonitor::ListHook,
&IdleMonitor::list_hook>,
boost::intrusive::constant_time_size<false>> IdleList;
boost::intrusive::constant_time_size<false>>;
IdleList idle;
Mutex mutex;
typedef boost::intrusive::list<DeferEvent,
using DeferredList =
boost::intrusive::list<DeferEvent,
boost::intrusive::member_hook<DeferEvent,
DeferEvent::ListHook,
&DeferEvent::list_hook>,
boost::intrusive::constant_time_size<false>> DeferredList;
boost::intrusive::constant_time_size<false>>;
DeferredList deferred;
#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