Mir
Public Member Functions | List of all members
mir::ProofOfMutexLock Class Reference

A method can take an instance of this class by reference to require callers to hold a mutex lock, without requiring a specific type of lock. More...

#include <proof_of_mutex_lock.h>

Public Member Functions

 ProofOfMutexLock (std::lock_guard< std::mutex > const &)
 
 ProofOfMutexLock (std::unique_lock< std::mutex > const &lock)
 
 ProofOfMutexLock (ProofOfMutexLock const &)=delete
 
ProofOfMutexLock operator= (ProofOfMutexLock const &)=delete
 

Detailed Description

A method can take an instance of this class by reference to require callers to hold a mutex lock, without requiring a specific type of lock.

Constructor & Destructor Documentation

◆ ProofOfMutexLock() [1/3]

mir::ProofOfMutexLock::ProofOfMutexLock ( std::lock_guard< std::mutex > const &  )
inline

◆ ProofOfMutexLock() [2/3]

mir::ProofOfMutexLock::ProofOfMutexLock ( std::unique_lock< std::mutex > const &  lock)
inline

◆ ProofOfMutexLock() [3/3]

mir::ProofOfMutexLock::ProofOfMutexLock ( ProofOfMutexLock const &  )
delete

Member Function Documentation

◆ operator=()

ProofOfMutexLock mir::ProofOfMutexLock::operator= ( ProofOfMutexLock const &  )
delete

The documentation for this class was generated from the following file:

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.