event/Loop: add thread assert() to AddDefer()
Currently fails in class NfsFileReader due to https://github.com/MusicPlayerDaemon/MPD/issues/1298
This commit is contained in:
parent
eb111a10e7
commit
f31920e092
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user