mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibThreading: Make MutexLocker [[nodiscard]]
This commit is contained in:
parent
1f4c7ac62b
commit
5d4aa15ada
|
|
@ -42,7 +42,7 @@ private:
|
|||
unsigned m_lock_count { 0 };
|
||||
};
|
||||
|
||||
class MutexLocker {
|
||||
class [[nodiscard]] MutexLocker {
|
||||
AK_MAKE_NONCOPYABLE(MutexLocker);
|
||||
AK_MAKE_NONMOVABLE(MutexLocker);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user