mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +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->flags |= THREAD_FLAGS_RUNNING;
|
||||
if (thread == next)
|
||||
thread->flags |= THREAD_FLAGS_RUNNING;
|
||||
|
||||
spinlock_release(¤t_cpu()->sched_lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user