mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-15 07:09:43 +03:00
Kernel: Rename queue_runnable_thread() => enqueue_runnable_thread()
This commit is contained in:
parent
0910979dec
commit
2be368e4c4
Notes:
sideshowbarker
2024-07-18 07:14:03 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2be368e4c44
@ -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())
|
||||
|
@ -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();
|
||||
|
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user