#include <userver/utils/trx_tracker.hpp>
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. | |