|
| | lock_scope (T &ctx) |
| | Acquires the lock represented by ctx.
|
| |
|
| ~lock_scope () |
| | Releases the guarded lock.
|
| |
|
| lock_scope (const lock_scope &)=delete |
| | Copy construction is disabled because the lock ownership is scoped.
|
| |
|
lock_scope & | operator= (const lock_scope &)=delete |
| | Copy assignment is disabled because the lock ownership is scoped.
|
| |
|
| lock_scope (lock_scope &&)=delete |
| | Move construction is disabled because the lock ownership is scoped.
|
| |
|
lock_scope & | operator= (lock_scope &&)=delete |
| | Move assignment is disabled because the lock ownership is scoped.
|
| |
template<typename T>
struct gaia::core::lock_scope< T >
RAII helper that calls lock() on construction and unlock() on destruction.
- Template Parameters
-
| T | Lockable type exposing lock() and unlock(). |