mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
scheduler: add a few more sanity checks
This commit is contained in:
@@ -227,6 +227,8 @@ found:
|
||||
if (thread->cputarget == NULL)
|
||||
--current_cpu()->stealable_thread_count;
|
||||
|
||||
__assert((thread->flags & THREAD_FLAGS_QUEUED) == 0);
|
||||
__assert((thread->flags & THREAD_FLAGS_RUNNING) == 0);
|
||||
return thread;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user