mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
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) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user