diff options
-rw-r--r-- | Kernel/Locking/SpinlockProtected.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Kernel/Locking/SpinlockProtected.h b/Kernel/Locking/SpinlockProtected.h index 39a7b134b2..dd0344708c 100644 --- a/Kernel/Locking/SpinlockProtected.h +++ b/Kernel/Locking/SpinlockProtected.h @@ -46,7 +46,11 @@ private: auto lock_mutable() { return Locked<T>(m_value, m_spinlock); } public: - SpinlockProtected() = default; + template<typename... Args> + SpinlockProtected(Args&&... args) + : m_value(forward<Args>(args)...) + { + } template<typename Callback> decltype(auto) with(Callback callback) const |