core: thread_flags: Set sched_status_switch_request after waking a waiting thread
This commit is contained in:
parent
9399951546
commit
a67694a8c0
@ -112,8 +112,9 @@ inline int __attribute__((always_inline)) thread_flags_wake(thread_t *thread)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (wakeup) {
|
if (wakeup) {
|
||||||
DEBUG("_thread_flags_wake(): wakeing up pid %"PRIkernel_pid"\n", thread->pid);
|
DEBUG("_thread_flags_wake(): waking up pid %"PRIkernel_pid"\n", thread->pid);
|
||||||
sched_set_status(thread, STATUS_RUNNING);
|
sched_set_status(thread, STATUS_PENDING);
|
||||||
|
sched_context_switch_request = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return wakeup;
|
return wakeup;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user