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

This commit is contained in:
Max Kellermann 2020-10-08 16:58:34 +02:00
parent bf270a5663
commit 4cd0f661d6
1 changed files with 9 additions and 6 deletions

View File

@ -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