mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-25 17:15:42 +02:00
AK/Singleton: Prefer non-recursive Spinlocks
This commit is contained in:
committed by
Sönke Holz
parent
2039c17902
commit
ee109e9d69
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user