Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/bdb.h
Show All 39 Lines | private: | ||||
bool fMockDb; | bool fMockDb; | ||||
// Don't change into fs::path, as that can result in | // Don't change into fs::path, as that can result in | ||||
// shutdown problems/crashes caused by a static initialized internal | // shutdown problems/crashes caused by a static initialized internal | ||||
// pointer. | // pointer. | ||||
std::string strPath; | std::string strPath; | ||||
public: | public: | ||||
std::unique_ptr<DbEnv> dbenv; | std::unique_ptr<DbEnv> dbenv; | ||||
std::map<std::string, int> mapFileUseCount; | |||||
std::map<std::string, std::reference_wrapper<BerkeleyDatabase>> m_databases; | std::map<std::string, std::reference_wrapper<BerkeleyDatabase>> m_databases; | ||||
std::unordered_map<std::string, WalletDatabaseFileId> m_fileids; | std::unordered_map<std::string, WalletDatabaseFileId> m_fileids; | ||||
std::condition_variable_any m_db_in_use; | std::condition_variable_any m_db_in_use; | ||||
BerkeleyEnvironment(const fs::path &env_directory); | BerkeleyEnvironment(const fs::path &env_directory); | ||||
BerkeleyEnvironment(); | BerkeleyEnvironment(); | ||||
~BerkeleyEnvironment(); | ~BerkeleyEnvironment(); | ||||
void Reset(); | void Reset(); | ||||
▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines |