EventLoop: initialise the thread id explicitly

This commit is contained in:
Max Kellermann 2013-08-10 14:01:55 +02:00
parent b9d30595d6
commit 00420ef9ca

View File

@ -33,7 +33,8 @@ EventLoop::EventLoop(Default)
:SocketMonitor(*this),
now_ms(::monotonic_clock_ms()),
quit(false),
n_events(0)
n_events(0),
thread(ThreadId::Null())
{
SocketMonitor::Open(wake_fd.Get());
SocketMonitor::Schedule(SocketMonitor::READ);