|
pstore2
|
lock_guard fills a similar role as a type such as std::scoped_lock<> in that it provides convenient RAII-style mechanism for owning a mutex for the duration of a scoped block. More...
#include <transaction.hpp>
Public Member Functions | |
| lock_guard (MutexType &&mut) | |
| lock_guard (lock_guard const &rhs)=delete | |
| lock_guard (lock_guard &&rhs) noexcept | |
| lock_guard & | operator= (lock_guard const &rhs)=delete |
| lock_guard & | operator= (lock_guard &&rhs) noexcept |
lock_guard fills a similar role as a type such as std::scoped_lock<> in that it provides convenient RAII-style mechanism for owning a mutex for the duration of a scoped block.
The major differences are that it manages only a single mutex, and that it assumes ownership of the mutex.
1.8.13