Skip to content
Snippets Groups Projects
Commit 1bb256a3 authored by Kaspar Schleiser's avatar Kaspar Schleiser Committed by GitHub
Browse files

Merge pull request #7552 from gebart/pr/core-thread-flag-sched-request

core: thread_flags: Set sched_status_switch_request after waking a waiting thread
parents fc63f995 a67694a8
No related branches found
No related tags found
No related merge requests found
......@@ -112,8 +112,9 @@ inline int __attribute__((always_inline)) thread_flags_wake(thread_t *thread)
}
if (wakeup) {
DEBUG("_thread_flags_wake(): wakeing up pid %"PRIkernel_pid"\n", thread->pid);
sched_set_status(thread, STATUS_RUNNING);
DEBUG("_thread_flags_wake(): waking up pid %"PRIkernel_pid"\n", thread->pid);
sched_set_status(thread, STATUS_PENDING);
sched_context_switch_request = 1;
}
return wakeup;
......
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