mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibThreading: Make MutexLocker [[nodiscard]]
This commit is contained in:
parent
1f4c7ac62b
commit
5d4aa15ada
Notes:
github-actions[bot]
2025-01-10 13:22:43 +00:00
Author: https://github.com/tcl3
Commit: 5d4aa15ada
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3211
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ private:
|
|||
unsigned m_lock_count { 0 };
|
||||
};
|
||||
|
||||
class MutexLocker {
|
||||
class [[nodiscard]] MutexLocker {
|
||||
AK_MAKE_NONCOPYABLE(MutexLocker);
|
||||
AK_MAKE_NONMOVABLE(MutexLocker);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue