Commit f31920e0 authored by Max Kellermann's avatar Max Kellermann

event/Loop: add thread assert() to AddDefer()

Currently fails in class NfsFileReader due to https://github.com/MusicPlayerDaemon/MPD/issues/1298
parent eb111a10
......@@ -175,6 +175,10 @@ EventLoop::HandleTimers() noexcept
void
EventLoop::AddDefer(DeferEvent &d) noexcept
{
#ifdef HAVE_THREADED_EVENT_LOOP
assert(!IsAlive() || IsInside());
#endif
defer.push_back(d);
again = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment