LibThreading: Make MutexLocker [[nodiscard]]

This commit is contained in:
Tim Ledbetter 2025-01-10 12:21:01 +00:00 committed by Sam Atkins
parent 1f4c7ac62b
commit 5d4aa15ada

View File

@ -42,7 +42,7 @@ private:
unsigned m_lock_count { 0 };
};
class MutexLocker {
class [[nodiscard]] MutexLocker {
AK_MAKE_NONCOPYABLE(MutexLocker);
AK_MAKE_NONMOVABLE(MutexLocker);