From f9943b60e461d55f9b2c6643a382f9a600463ffc Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 17 Apr 2024 00:53:25 +0300 Subject: [PATCH] Kernel: Fix mutex try_lock return value WHY IS GCC NOT COMPLAINING FROM HEADERS... I used almost 2 hours trying to locate why AML was broken --- kernel/include/kernel/Lock/Mutex.h | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/include/kernel/Lock/Mutex.h b/kernel/include/kernel/Lock/Mutex.h index a4c895a2..a19b60f6 100644 --- a/kernel/include/kernel/Lock/Mutex.h +++ b/kernel/include/kernel/Lock/Mutex.h @@ -43,6 +43,7 @@ namespace Kernel ASSERT(m_lock_depth == 0); } m_lock_depth++; + return true; } void unlock()