diff --git a/app/src/main/cpp/skyline/kernel/types/KThread.h b/app/src/main/cpp/skyline/kernel/types/KThread.h index a39b6c00..47e09bf0 100644 --- a/app/src/main/cpp/skyline/kernel/types/KThread.h +++ b/app/src/main/cpp/skyline/kernel/types/KThread.h @@ -7,6 +7,7 @@ #include #include #include +#include #include "KSyncObject.h" #include "KPrivateMemory.h" #include "KSharedMemory.h" @@ -62,7 +63,7 @@ namespace skyline { bool pendingYield{}; //!< If the thread has been yielded and hasn't been acted upon it yet bool forceYield{}; //!< If the thread has been forcefully yielded by another thread - std::recursive_mutex waiterMutex; //!< Synchronizes operations on mutation of the waiter members + RecursiveSpinLock waiterMutex; //!< Synchronizes operations on mutation of the waiter members u32 *waitMutex; //!< The key of the mutex which this thread is waiting on KHandle waitTag; //!< The handle of the thread which requested the mutex lock std::shared_ptr waitThread; //!< The thread which this thread is waiting on