mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:48:11 +00:00
Kernel: Unify Kernel task names for consistency
This change unifies the naming convention for kernel tasks. The goal of this change is to: - Make the task names more descriptive, so users can more easily understand their purpose in System Monitor. - Unify the naming convention so they are consistent.
This commit is contained in:
parent
5fd3716e2f
commit
6b85b358f8
6 changed files with 10 additions and 8 deletions
|
@ -11,6 +11,8 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
static constexpr StringView finalizer_task_name = "Finalizer Task"sv;
|
||||
|
||||
static void finalizer_task(void*)
|
||||
{
|
||||
Thread::current()->set_priority(THREAD_PRIORITY_LOW);
|
||||
|
@ -20,14 +22,14 @@ static void finalizer_task(void*)
|
|||
if (g_finalizer_has_work.exchange(false, AK::MemoryOrder::memory_order_acq_rel) == true)
|
||||
Thread::finalize_dying_threads();
|
||||
else
|
||||
g_finalizer_wait_queue->wait_forever("FinalizerTask");
|
||||
g_finalizer_wait_queue->wait_forever(finalizer_task_name);
|
||||
}
|
||||
};
|
||||
|
||||
UNMAP_AFTER_INIT void FinalizerTask::spawn()
|
||||
{
|
||||
RefPtr<Thread> finalizer_thread;
|
||||
auto finalizer_process = Process::create_kernel_process(finalizer_thread, KString::must_create("FinalizerTask"), finalizer_task, nullptr);
|
||||
auto finalizer_process = Process::create_kernel_process(finalizer_thread, KString::must_create(finalizer_task_name), finalizer_task, nullptr);
|
||||
VERIFY(finalizer_process);
|
||||
g_finalizer = finalizer_thread;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue