Browse Source

Kernel: Rename queue_runnable_thread() => enqueue_runnable_thread()

Andreas Kling 4 years ago
parent
commit
2be368e4c4
3 changed files with 3 additions and 3 deletions
  1. 1 1
      Kernel/Scheduler.cpp
  2. 1 1
      Kernel/Scheduler.h
  3. 1 1
      Kernel/Thread.cpp

+ 1 - 1
Kernel/Scheduler.cpp

@@ -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());
     VERIFY(g_scheduler_lock.own_lock());
     if (thread.is_idle_thread())
     if (thread.is_idle_thread())

+ 1 - 1
Kernel/Scheduler.h

@@ -50,7 +50,7 @@ public:
     static Thread& pull_next_runnable_thread();
     static Thread& pull_next_runnable_thread();
     static Thread* peek_next_runnable_thread();
     static Thread* peek_next_runnable_thread();
     static bool dequeue_runnable_thread(Thread&, bool = false);
     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 void dump_scheduler_state(bool = false);
     static bool is_initialized();
     static bool is_initialized();
     static TotalTimeScheduled get_total_time_scheduled();
     static TotalTimeScheduled get_total_time_scheduled();

+ 1 - 1
Kernel/Thread.cpp

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