AK/Singleton: Prefer non-recursive Spinlocks

This commit is contained in:
implicitfield
2025-05-15 16:36:13 +03:00
committed by Sönke Holz
parent 2039c17902
commit ee109e9d69

View File

@@ -40,10 +40,10 @@ struct SingletonInstanceCreator {
#ifdef KERNEL
template<typename T, Kernel::LockRank Rank>
struct SingletonInstanceCreator<Kernel::RecursiveSpinlockProtected<T, Rank>> {
static Kernel::RecursiveSpinlockProtected<T, Rank>* create()
struct SingletonInstanceCreator<Kernel::SpinlockProtected<T, Rank>> {
static Kernel::SpinlockProtected<T, Rank>* create()
{
return new Kernel::RecursiveSpinlockProtected<T, Rank> {};
return new Kernel::SpinlockProtected<T, Rank> {};
}
};
#endif