Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/db.h
Show All 30 Lines | private: | ||||
// 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; | ||||
void EnvShutdown(); | void EnvShutdown(); | ||||
public: | public: | ||||
mutable CCriticalSection cs_db; | mutable CCriticalSection cs_db; | ||||
DbEnv *dbenv; | std::unique_ptr<DbEnv> dbenv; | ||||
std::map<std::string, int> mapFileUseCount; | std::map<std::string, int> mapFileUseCount; | ||||
std::map<std::string, Db *> mapDb; | std::map<std::string, Db *> mapDb; | ||||
CDBEnv(); | CDBEnv(); | ||||
~CDBEnv(); | ~CDBEnv(); | ||||
void Reset(); | void Reset(); | ||||
void MakeMock(); | void MakeMock(); | ||||
▲ Show 20 Lines • Show All 342 Lines • Show Last 20 Lines |