event/Loop: forward-declare class TimerEvent
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "Loop.hxx"
|
||||
#include "TimerEvent.hxx"
|
||||
#include "SocketMonitor.hxx"
|
||||
#include "IdleMonitor.hxx"
|
||||
#include "DeferEvent.hxx"
|
||||
@@ -29,6 +30,13 @@
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
constexpr bool
|
||||
EventLoop::TimerCompare::operator()(const TimerEvent &a,
|
||||
const TimerEvent &b) const noexcept
|
||||
{
|
||||
return a.due < b.due;
|
||||
}
|
||||
|
||||
EventLoop::EventLoop(ThreadId _thread)
|
||||
:SocketMonitor(*this),
|
||||
/* if this instance is hosted by an EventThread (no ThreadId
|
||||
|
Reference in New Issue
Block a user