#include <blockchain_db.h>
Definition at line 1816 of file blockchain_db.h.
◆ db_txn_guard()
| cryptonote::db_txn_guard::db_txn_guard |
( |
BlockchainDB * | db, |
|
|
bool | readonly ) |
|
inline |
Definition at line 1819 of file blockchain_db.h.
1819 : db(db), readonly(readonly), active(false)
1820 {
1821 if (readonly)
1822 {
1823 active = db->block_rtxn_start();
1824 }
1825 else
1826 {
1827 db->block_wtxn_start();
1828 active = true;
1829 }
1830 }
◆ ~db_txn_guard()
| virtual cryptonote::db_txn_guard::~db_txn_guard |
( |
| ) |
|
|
inlinevirtual |
◆ abort()
| void cryptonote::db_txn_guard::abort |
( |
| ) |
|
|
inline |
Definition at line 1844 of file blockchain_db.h.
1845 {
1846 if (readonly)
1847 db->block_rtxn_abort();
1848 else
1849 db->block_wtxn_abort();
1850 active = false;
1851 }
◆ stop()
| void cryptonote::db_txn_guard::stop |
( |
| ) |
|
|
inline |
Definition at line 1836 of file blockchain_db.h.
1837 {
1838 if (readonly)
1839 db->block_rtxn_stop();
1840 else
1841 db->block_wtxn_stop();
1842 active = false;
1843 }
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/blockchain_db/blockchain_db.h