scheduler: add a few more sanity checks

This commit is contained in:
Matheus
2025-11-08 02:20:05 -03:00
parent 27c6b11d2d
commit ab90700203
+2
View File
@@ -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;
}