0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd:Ⓜ️:vm: Additional sequence barrier for shutdown.

This commit is contained in:
Jason Volk 2020-03-20 17:18:44 -07:00
parent 1a0d617803
commit 592d8a90c2

View file

@ -72,7 +72,20 @@ noexcept
return !eval::executing && !eval::injecting;
});
assert(!sequence::pending);
if(sequence::pending)
log::warning
{
log, "Waiting for pending:%zu sequencing (retired:%zu committed:%zu uncommitted:%zu)",
sequence::pending,
sequence::retired,
sequence::committed,
sequence::uncommitted,
};
sequence::dock.wait([]
{
return !sequence::pending;
});
event::id::buf event_id;
const auto retired