Move CKeyStore::cs_KeyStore to CBasicKeyStore
This commit is contained in:
parent
25eb9f5020
commit
f381299d64
2 changed files with 3 additions and 4 deletions
|
@ -218,7 +218,7 @@ inconsistencies reported in the debug.log file.
|
||||||
|
|
||||||
Re-architecting the core code so there are better-defined interfaces
|
Re-architecting the core code so there are better-defined interfaces
|
||||||
between the various components is a goal, with any necessary locking
|
between the various components is a goal, with any necessary locking
|
||||||
done by the components (e.g. see the self-contained CKeyStore class
|
done by the components (e.g. see the self-contained CBasicKeyStore class
|
||||||
and its cs_KeyStore lock for example).
|
and its cs_KeyStore lock for example).
|
||||||
|
|
||||||
Threads
|
Threads
|
||||||
|
|
|
@ -17,9 +17,6 @@
|
||||||
/** A virtual base class for key stores */
|
/** A virtual base class for key stores */
|
||||||
class CKeyStore
|
class CKeyStore
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
mutable CCriticalSection cs_KeyStore;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual ~CKeyStore() {}
|
virtual ~CKeyStore() {}
|
||||||
|
|
||||||
|
@ -54,6 +51,8 @@ typedef std::set<CScript> WatchOnlySet;
|
||||||
class CBasicKeyStore : public CKeyStore
|
class CBasicKeyStore : public CKeyStore
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
mutable CCriticalSection cs_KeyStore;
|
||||||
|
|
||||||
KeyMap mapKeys;
|
KeyMap mapKeys;
|
||||||
WatchKeyMap mapWatchKeys;
|
WatchKeyMap mapWatchKeys;
|
||||||
ScriptMap mapScripts;
|
ScriptMap mapScripts;
|
||||||
|
|
Loading…
Reference in a new issue