mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibThreading: Make MutexLocker [[nodiscard]]
This commit is contained in:
committed by
Sam Atkins
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user