mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use RippleMutex instead of boost::mutex
This commit is contained in:
@@ -288,7 +288,10 @@ uint160 RippleAddress::getAccountID () const
|
||||
}
|
||||
}
|
||||
|
||||
static boost::mutex rncLock;
|
||||
typedef RippleMutex StaticLockType;
|
||||
typedef StaticLockType::ScopedLockType StaticScopedLockType;
|
||||
static StaticLockType s_lock ("RippleAddress", __FILE__, __LINE__);
|
||||
|
||||
static boost::unordered_map< Blob , std::string > rncMap;
|
||||
|
||||
std::string RippleAddress::humanAccountID () const
|
||||
@@ -300,7 +303,7 @@ std::string RippleAddress::humanAccountID () const
|
||||
|
||||
case VER_ACCOUNT_ID:
|
||||
{
|
||||
boost::mutex::scoped_lock sl (rncLock);
|
||||
StaticScopedLockType sl (s_lock, __FILE__, __LINE__);
|
||||
boost::unordered_map< Blob , std::string >::iterator it = rncMap.find (vchData);
|
||||
|
||||
if (it != rncMap.end ())
|
||||
|
||||
Reference in New Issue
Block a user