Mark MutexLock as [[nodiscard]] to prevent misuse.
This commit is contained in:
parent
bf95b62586
commit
27393fbd24
1 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ public:
|
|||
};
|
||||
|
||||
template <typename MutexT>
|
||||
class MutexLock {
|
||||
class [[nodiscard]] MutexLock {
|
||||
mutable THREADING_NAMESPACE::unique_lock<typename MutexT::StdMutexType> lock;
|
||||
|
||||
public:
|
||||
|
|
@ -114,7 +114,7 @@ public:
|
|||
};
|
||||
|
||||
template <typename MutexT>
|
||||
class MutexLock {
|
||||
class [[nodiscard]] MutexLock {
|
||||
public:
|
||||
MutexLock(const MutexT &p_mutex) {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue