event/Loop: make IsInsideOrNull() available in the NDEBUG build

Fixes build breakage by commit 4e5271fcdf7; and this method does make
sense in non-debug builds.
This commit is contained in:
Max Kellermann
2017-02-09 21:21:49 +01:00
parent 29e1b6e465
commit 7372c931b3
2 changed files with 8 additions and 3 deletions

View File

@@ -222,8 +222,9 @@ EventLoop::Run()
#ifndef NDEBUG
assert(busy);
assert(thread.IsInside());
thread = ThreadId::Null();
#endif
thread = ThreadId::Null();
}
void