mirror of
https://review.haiku-os.org/haiku
synced 2025-02-23 05:58:31 +01:00
scheduler_reschedule_no_op(): panic() when the calling thread is not
continuing to run. This must not happen since the thread is the boot CPU's idle thread performing the early kernel initialization (before the scheduler is started). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36560 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
26f1dd2708
commit
f651548ee6
@ -24,6 +24,9 @@ static void (*sRescheduleFunction)(void);
|
||||
static void
|
||||
scheduler_reschedule_no_op(void)
|
||||
{
|
||||
struct thread* thread = thread_get_current_thread();
|
||||
if (thread != NULL && thread->next_state != B_THREAD_READY)
|
||||
panic("scheduler_reschedule_no_op() called in non-ready thread");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user