From 904357fb6243c2773e113d69a306395b10f1a360 Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flow@cs.fau.de>
Date: Wed, 18 Aug 2021 15:40:28 +0200
Subject: [PATCH] [IoContext] Remove duplicate CQE_BATCH_COUNT delcaration and
 definition

---
 emper/io/IoContext.cpp | 3 ---
 emper/io/IoContext.hpp | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/emper/io/IoContext.cpp b/emper/io/IoContext.cpp
index e8b62ec4..7a7030a5 100644
--- a/emper/io/IoContext.cpp
+++ b/emper/io/IoContext.cpp
@@ -213,9 +213,6 @@ template void IoContext::submitAndWait<CallerEnvironment::ANYWHERE>(Future &futu
 
 template <CallerEnvironment callerEnvironment>
 auto IoContext::reapCompletions(ContinuationBuffer &continuationFibers) -> unsigned {
-	// Should not be more than the uring_entries count.
-	const unsigned CQE_BATCH_COUNT = EMPER_IO_WORKER_URING_ENTRIES;
-
 	unsigned reReapCount = 0;
 	uint32_t maxRaceFreeCompleterAttempts = 1;
 
diff --git a/emper/io/IoContext.hpp b/emper/io/IoContext.hpp
index 88f5ba9e..ec9c8eaf 100644
--- a/emper/io/IoContext.hpp
+++ b/emper/io/IoContext.hpp
@@ -300,6 +300,7 @@ class IoContext : public Logger<LogSubsystem::IO> {
 		reapAndScheduleCompletions();
 	}
 
+	// Should not be more than the uring_entries count.
 	static const unsigned CQE_BATCH_COUNT = EMPER_IO_WORKER_URING_ENTRIES;
 	using ContinuationBuffer = std::array<Fiber *, CQE_BATCH_COUNT>;
 
-- 
GitLab