mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
LibThreading: Expose the ProtectedType alias
This commit is contained in:
parent
e003c0bf06
commit
d277fd4679
Notes:
sideshowbarker
2024-07-17 09:48:50 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/d277fd4679 Pull-request: https://github.com/SerenityOS/serenity/pull/24313 Reviewed-by: https://github.com/Zaggy1024
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user