Tidy up hardened containers (RIPD-380):

* Rename hardened containers for clarity
* Fixes https://ripplelabs.atlassian.net/browse/RIPD-380
This commit is contained in:
Howard Hinnant
2014-07-28 09:01:32 -07:00
committed by Vinnie Falco
parent e6f4eedb1e
commit 58547f6997
64 changed files with 179 additions and 170 deletions

View File

@@ -59,7 +59,7 @@ public:
{
if (mConsensusLedger.isNonZero() && (mValidationLedger != mConsensusLedger) && (hash != mConsensusLedger))
{
ripple::unordered_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (mConsensusLedger);
hash_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (mConsensusLedger);
if (it != mLedgers.end ())
{
oldLedger = it->second;
@@ -72,7 +72,7 @@ public:
{
if (mValidationLedger.isNonZero() && (mValidationLedger != mConsensusLedger) && (hash != mValidationLedger))
{
ripple::unordered_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (mValidationLedger);
hash_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (mValidationLedger);
if (it != mLedgers.end ())
{
oldLedger = it->second;
@@ -82,7 +82,7 @@ public:
mValidationLedger = hash;
}
ripple::unordered_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (hash);
hash_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (hash);
if (it != mLedgers.end ())
{
ret = it->second;
@@ -111,7 +111,7 @@ public:
{
ScopedLockType sl (mLock);
ripple::unordered_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (hash);
hash_map<uint256, InboundLedger::pointer>::iterator it = mLedgers.find (hash);
if (it != mLedgers.end ())
{
ret = it->second;
@@ -376,7 +376,7 @@ public:
private:
clock_type& m_clock;
typedef ripple::unordered_map <uint256, InboundLedger::pointer> MapType;
typedef hash_map <uint256, InboundLedger::pointer> MapType;
typedef RippleRecursiveMutex LockType;
typedef std::unique_lock <LockType> ScopedLockType;