LibThreading: Expose the ProtectedType alias

This commit is contained in:
Ali Mohammad Pur 2024-05-08 20:13:44 +02:00 committed by Andreas Kling
parent e003c0bf06
commit d277fd4679
Notes: sideshowbarker 2024-07-17 09:48:50 +09:00

View File

@ -16,9 +16,10 @@ template<typename T>
class MutexProtected {
AK_MAKE_NONCOPYABLE(MutexProtected);
AK_MAKE_NONMOVABLE(MutexProtected);
using ProtectedType = T;
public:
using ProtectedType = T;
ALWAYS_INLINE MutexProtected() = default;
ALWAYS_INLINE MutexProtected(T&& value)
: m_value(move(value))