We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae4f1dc commit 753d2b1Copy full SHA for 753d2b1
include/mp/util.h
@@ -174,7 +174,7 @@ class MP_CAPABILITY("mutex") Mutex {
174
class MP_SCOPED_CAPABILITY Lock {
175
public:
176
explicit Lock(Mutex& m) MP_ACQUIRE(m) : m_lock(m.m_mutex) {}
177
- ~Lock() MP_RELEASE() {}
+ ~Lock() MP_RELEASE() = default;
178
void unlock() MP_RELEASE() { m_lock.unlock(); }
179
void lock() MP_ACQUIRE() { m_lock.lock(); }
180
void assert_locked(Mutex& mutex) MP_ASSERT_CAPABILITY() MP_ASSERT_CAPABILITY(mutex)
0 commit comments