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

[IoContext] Remove duplicate CQE_BATCH_COUNT delcaration and definition

parent 4b3b10d5
No related branches found
No related tags found
1 merge request!233[IoContext] Remove duplicate CQE_BATCH_COUNT delcaration and definition
......@@ -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;
......
......@@ -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>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment