mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
sched: fix running flag
This commit is contained in:
@@ -161,7 +161,8 @@ static void yield(context_t *context, void *) {
|
|||||||
|
|
||||||
thread_t *next = sched_select_next_thread();
|
thread_t *next = sched_select_next_thread();
|
||||||
|
|
||||||
thread->flags |= THREAD_FLAGS_RUNNING;
|
if (thread == next)
|
||||||
|
thread->flags |= THREAD_FLAGS_RUNNING;
|
||||||
|
|
||||||
spinlock_release(¤t_cpu()->sched_lock);
|
spinlock_release(¤t_cpu()->sched_lock);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user