From e84e4a7953cf54b6d7f04d2d94c98655504da749 Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flow@cs.fau.de>
Date: Mon, 15 Aug 2022 13:23:56 +0200
Subject: [PATCH] WIP: Fused Continuation- and Completion-Stealing

---
 emper/Runtime.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/emper/Runtime.cpp b/emper/Runtime.cpp
index c1d6171d..02345263 100644
--- a/emper/Runtime.cpp
+++ b/emper/Runtime.cpp
@@ -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];
-- 
GitLab