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

Merge branch 'replace_pthread_yield' into 'master'

[Dispatcher] replace deprecated pthread_yield with sched_yield

See merge request i4/manycore/emper!302
parents 90d32eab e000e270
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
// Copyright © 2020 Florian Schmaus
#include "Dispatcher.hpp"
#include <pthread.h> // for pthread_yield
#include <sched.h>
#include "Emper.hpp"
#include "Runtime.hpp" // for Runtime
......@@ -17,6 +17,6 @@ void Dispatcher::dispatchLoopDoSleep() {
if constexpr (emper::WORKER_SLEEP) {
runtime.dispatchLoopSleep();
} else {
pthread_yield();
sched_yield();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment