From 00420ef9cae3835df02186bb9d9a5cefcff00a21 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 Aug 2013 14:01:55 +0200 Subject: EventLoop: initialise the thread id explicitly --- src/event/Loop.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/event') diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx index 6e771d9dc..faf967f21 100644 --- a/src/event/Loop.cxx +++ b/src/event/Loop.cxx @@ -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); -- cgit v1.2.3