A guard struct for thread synchronization and transaction management. More...
#include <kvstore.hpp>
Public Member Functions | |
Transaction (KVStore &store) | |
~Transaction () | |
Transaction (const Transaction &)=delete | |
Transaction & | operator= (const Transaction &)=delete |
void | commit () |
Private Attributes | |
std::unique_lock < std::recursive_mutex > | mLock |
KVStore & | mKVStore |
bool | mIsOuter |
A guard struct for thread synchronization and transaction management.
cargo::KVStore::Transaction::Transaction | ( | KVStore & | store | ) |
cargo::KVStore::Transaction::~Transaction | ( | ) |
|
delete |
void cargo::KVStore::Transaction::commit | ( | ) |
|
delete |
|
private |
|
private |
|
private |