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

[Runtime] Add missing constexpr

parent 3785a5d9
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ class Runtime : public Logger<LogSubsystem::RUNTI> {
if constexpr (emper::WORKER_WAKEUP_STRATEGY == emper::WorkerWakeupStrategy::all) {
sleepingWorkers.store(0, std::memory_order_relaxed);
workerSleepConditionVariable.notify_all();
} else if (emper::WORKER_WAKEUP_STRATEGY == emper::WorkerWakeupStrategy::one) {
} else if constexpr (emper::WORKER_WAKEUP_STRATEGY == emper::WorkerWakeupStrategy::one) {
sleepingWorkers.fetch_sub(1, std::memory_order_relaxed);
workerSleepConditionVariable.notify_one();
} else {
......
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