10 explicit UniqLock(std::mutex& mtx) : lck{mtx} {}
17 std::swap(lck, other.lck);
20 bool isLocked()
const {
return lck.owns_lock(); }
23 std::unique_lock<std::mutex> lck;
Definition alter_type.h:5
UniqLock(const UniqLock &)=delete
UniqLock()
Definition uniq_lock.h:9
UniqLock(std::mutex &mtx)
Definition uniq_lock.h:10
bool isLocked() const
Definition uniq_lock.h:20
UniqLock(UniqLock &&other) noexcept
Definition uniq_lock.h:15
UniqLock & operator=(const UniqLock &)=delete
UniqLock & operator=(UniqLock &&other) noexcept
Definition uniq_lock.h:16