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:
@@ -348,6 +348,7 @@ namespace Kernel
|
||||
|
||||
struct futex_t
|
||||
{
|
||||
Mutex mutex;
|
||||
ThreadBlocker blocker;
|
||||
uint32_t waiters { 0 };
|
||||
uint32_t to_wakeup { 0 };
|
||||
|
||||
Reference in New Issue
Block a user