|
join 1.0
lightweight network framework library
|
class owning a mutex for the duration of a scoped block. More...
#include <mutex.hpp>
Public Member Functions | |
| ScopedLock ()=delete | |
| default constructor. | |
| ScopedLock (Lockable &mutex) | |
| acquires ownership of the given mutex. | |
| ScopedLock (const ScopedLock &other)=delete | |
| copy constructor. | |
| ScopedLock & | operator= (const ScopedLock &other)=delete |
| copy assignment. | |
| ScopedLock (ScopedLock &&other)=delete | |
| move constructor. | |
| ScopedLock & | operator= (ScopedLock &&other)=delete |
| move assignment. | |
| ~ScopedLock () | |
| releases the ownership of the owned mutex. | |
| Lockable * | mutex () const |
| get associated mutex. | |
class owning a mutex for the duration of a scoped block.
|
delete |
default constructor.
|
inlineexplicit |
acquires ownership of the given mutex.
| mutex | mutex to acquire ownership of. |
|
delete |
copy constructor.
| other | other object to copy. |
|
delete |
move constructor.
| other | other object to move. |
|
inline |
releases the ownership of the owned mutex.
|
inline |
get associated mutex.
|
delete |
copy assignment.
| other | other object to copy. |
|
delete |
move assignment.
| other | other object to move. |