StormByte-Database 3.0.0
C++26 database module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Database::Database::OperationGuard Class Referencefinal

RAII ownership of the connection operation gate. More...

#include <StormByte/database/database.hxx>

Public Member Functions

 OperationGuard (const Database &database) noexcept
 Acquire the connection operation gate.
 OperationGuard (const OperationGuard &other)=delete
 Copying a lock guard is disabled.
 ~OperationGuard () noexcept
 Release the connection operation gate.

Detailed Description

RAII ownership of the connection operation gate.

Constructor & Destructor Documentation

◆ OperationGuard() [1/2]

StormByte::Database::Database::OperationGuard::OperationGuard ( const Database & database)
explicitnoexcept

Acquire the connection operation gate.

Parameters
databaseDatabase whose operations are serialized.

◆ OperationGuard() [2/2]

StormByte::Database::Database::OperationGuard::OperationGuard ( const OperationGuard & other)
delete

Copying a lock guard is disabled.

Parameters
otherSource guard.

◆ ~OperationGuard()

StormByte::Database::Database::OperationGuard::~OperationGuard ( )
noexcept

Release the connection operation gate.


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