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

WIP: Fused Continuation- and Completion-Stealing

parent aee9590c
No related branches found
No related tags found
No related merge requests found
Pipeline #87856 passed
......@@ -433,6 +433,7 @@ auto Runtime::nextFiber() -> std::optional<NextFiberResult> {
IoContext::ContinuationBuffer completions;
unsigned ncompletions =
IoContext::getWorkerIo()->reapCompletions<CallerEnvironment::OWNER>(completions);
// TODO: "Sort" completions by ones we want to defer and ones we want to execute right away.
if (ncompletions > 0) {
// Keep the first and schedule the rest
Fiber* next = completions[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment