Kernel: Rename queue_runnable_thread() => enqueue_runnable_thread()

This commit is contained in:
Andreas Kling 2021-08-08 14:19:55 +02:00
parent 0910979dec
commit 2be368e4c4
Notes: sideshowbarker 2024-07-18 07:14:03 +09:00
3 changed files with 3 additions and 3 deletions

View File

@ -167,7 +167,7 @@ bool Scheduler::dequeue_runnable_thread(Thread& thread, bool check_affinity)
});
}
void Scheduler::queue_runnable_thread(Thread& thread)
void Scheduler::enqueue_runnable_thread(Thread& thread)
{
VERIFY(g_scheduler_lock.own_lock());
if (thread.is_idle_thread())

View File

@ -50,7 +50,7 @@ public:
static Thread& pull_next_runnable_thread();
static Thread* peek_next_runnable_thread();
static bool dequeue_runnable_thread(Thread&, bool = false);
static void queue_runnable_thread(Thread&);
static void enqueue_runnable_thread(Thread&);
static void dump_scheduler_state(bool = false);
static bool is_initialized();
static TotalTimeScheduled get_total_time_scheduled();

View File

@ -1120,7 +1120,7 @@ void Thread::set_state(State new_state, u8 stop_signal)
}
if (m_state == Runnable) {
Scheduler::queue_runnable_thread(*this);
Scheduler::enqueue_runnable_thread(*this);
Processor::smp_wake_n_idle_processors(1);
} else if (m_state == Stopped) {
// We don't want to restore to Running state, only Runnable!