Skip to content
Snippets Groups Projects
Commit a67694a8 authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

core: thread_flags: Set sched_status_switch_request after waking a waiting thread

parent 93999515
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