summaryrefslogtreecommitdiff
path: root/Kernel/Tasks/FinalizerTask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Tasks/FinalizerTask.cpp')
-rw-r--r--Kernel/Tasks/FinalizerTask.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Tasks/FinalizerTask.cpp b/Kernel/Tasks/FinalizerTask.cpp
index fe82f84ab9..f05d573a7f 100644
--- a/Kernel/Tasks/FinalizerTask.cpp
+++ b/Kernel/Tasks/FinalizerTask.cpp
@@ -32,7 +32,7 @@ namespace Kernel {
void FinalizerTask::spawn()
{
RefPtr<Thread> finalizer_thread;
- Process::create_kernel_process(finalizer_thread, "FinalizerTask", [] {
+ Process::create_kernel_process(finalizer_thread, "FinalizerTask", [](void*) {
Thread::current()->set_priority(THREAD_PRIORITY_LOW);
for (;;) {
Thread::current()->wait_on(*g_finalizer_wait_queue, "FinalizerTask");
@@ -41,7 +41,7 @@ void FinalizerTask::spawn()
if (g_finalizer_has_work.compare_exchange_strong(expected, false, AK::MemoryOrder::memory_order_acq_rel))
Thread::finalize_dying_threads();
}
- });
+ }, nullptr);
g_finalizer = finalizer_thread;
}