Kernel: Optimize futexes

Eeach futex object now has its own mutex to prevent unnecessary locking
of the process/global futex lock. This basically removes sys_futex from
profiles when running software with llvmpipe
This commit is contained in:
2026-01-13 19:18:52 +02:00
parent c30fc9d60f
commit a83fa6f4c6
2 changed files with 36 additions and 19 deletions

View File

@@ -348,6 +348,7 @@ namespace Kernel
struct futex_t
{
Mutex mutex;
ThreadBlocker blocker;
uint32_t waiters { 0 };
uint32_t to_wakeup { 0 };