Skip to content
Snippets Groups Projects
Commit 42d2c275 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[AbstractWorkStealingScheduler] assert in runtime system in pushBottom

parent 61a0da33
No related branches found
No related tags found
No related merge requests found
...@@ -292,6 +292,8 @@ auto AbstractWorkStealingScheduler::nextFiberResultFromMpscQueueOrWorkStealing() ...@@ -292,6 +292,8 @@ auto AbstractWorkStealingScheduler::nextFiberResultFromMpscQueueOrWorkStealing()
} }
auto AbstractWorkStealingScheduler::pushBottom(AbstractFiber& fiber) -> bool { auto AbstractWorkStealingScheduler::pushBottom(AbstractFiber& fiber) -> bool {
emper::assertInRuntime();
auto pushed = queue.pushBottom(&fiber); auto pushed = queue.pushBottom(&fiber);
if (pushed) [[likely]] { if (pushed) [[likely]] {
onNewWork<CallerEnvironment::EMPER>(emper::FiberHint{emper::FiberSource::local}); onNewWork<CallerEnvironment::EMPER>(emper::FiberHint{emper::FiberSource::local});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment