Commit 8c99ee45 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Merge branch 'assert-in-rts' into 'master'

[AbstractWorkStealingScheduler] assert in runtime system in pushBottom

See merge request !367
parents 61a0da33 42d2c275
......@@ -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});
......
Supports Markdown
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