event/Loop: use using
instead of typedef
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user