From 42d2c275b82b6c3f1855d44a92ff0e73ace5e1df Mon Sep 17 00:00:00 2001 From: Florian Schmaus <flow@cs.fau.de> Date: Mon, 21 Mar 2022 15:19:29 +0100 Subject: [PATCH] [AbstractWorkStealingScheduler] assert in runtime system in pushBottom --- emper/strategies/AbstractWorkStealingScheduler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emper/strategies/AbstractWorkStealingScheduler.cpp b/emper/strategies/AbstractWorkStealingScheduler.cpp index fe5f3940..6045e06d 100644 --- a/emper/strategies/AbstractWorkStealingScheduler.cpp +++ b/emper/strategies/AbstractWorkStealingScheduler.cpp @@ -292,6 +292,8 @@ auto AbstractWorkStealingScheduler::nextFiberResultFromMpscQueueOrWorkStealing() } auto AbstractWorkStealingScheduler::pushBottom(AbstractFiber& fiber) -> bool { + emper::assertInRuntime(); + auto pushed = queue.pushBottom(&fiber); if (pushed) [[likely]] { onNewWork<CallerEnvironment::EMPER>(emper::FiberHint{emper::FiberSource::local}); -- GitLab