From 4d742238f7b37b559669fcd6a58b6a020a0f1ff3 Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flow@cs.fau.de>
Date: Fri, 26 Feb 2021 11:05:23 +0100
Subject: [PATCH] [IoContext] Add code comment

---
 emper/io/IoContext.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/emper/io/IoContext.cpp b/emper/io/IoContext.cpp
index bd9aebaf..203051fd 100644
--- a/emper/io/IoContext.cpp
+++ b/emper/io/IoContext.cpp
@@ -290,7 +290,9 @@ auto IoContext::globalCompleterFunc(void *arg) -> void * {
 		TaggedPtr tptr(io_uring_cqe_get_data(cqe));
 		auto *future = castIfFuture(tptr);
 
-		// The cqe is for a completed Future
+		// The cqe is for a completed Future.
+		// This happens in case the global completer is dealing with a
+		// partial completion.
 		if (unlikely(future)) {
 			uint32_t res = cqe->res;
 			io_uring_cqe_seen(&io.ring, cqe);
-- 
GitLab