userver: utils::trx_tracker::CheckDisabler Class Reference
Loading...
Searching...
No Matches
utils::trx_tracker::CheckDisabler Class Referencefinal

#include <userver/utils/trx_tracker.hpp>

Detailed Description

Disable check for active transactions.

To conciously call a heavy operation in active transaction, check can be disabled by creating an instance of this class. Checks will be disabled until every instance either has Reenable() method called or is destroyed.

Definition at line 42 of file trx_tracker.hpp.

Public Member Functions

 CheckDisabler ()
 Disable check for active transactions.
 
 ~CheckDisabler ()
 Reenable check for active transactions on destruction.
 
 CheckDisabler (const CheckDisabler &)=delete
 
 CheckDisabler (CheckDisabler &&)=delete
 
CheckDisabler operator= (const CheckDisabler &)=delete
 
CheckDisabler operator= (CheckDisabler &&)=delete
 
void Reenable () noexcept
 Manually reenable check for active transactions.
 

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