pstore2
Public Member Functions | List of all members
pstore::lock_guard< MutexType > Class Template Reference

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_guardoperator= (lock_guard const &rhs)=delete
 
lock_guardoperator= (lock_guard &&rhs) noexcept
 

Detailed Description

template<typename MutexType>
class pstore::lock_guard< MutexType >

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.


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