mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use standard C++ types instead of type aliases:
* Remove ripple::RippleMutex and ripple::RippleRecursiveMutex and use std::mutex and std::recursive_mutex respectively. * Use std::lock_guard instead of std::unique_lock when the additional features of std::unique_lock are not needed.
This commit is contained in:
committed by
Vinnie Falco
parent
333ba69d60
commit
f424ae6942
@@ -29,6 +29,7 @@
|
||||
#include <beast/cxx14/memory.h> // <memory>
|
||||
#include <beast/module/core/text/LexicalCast.h>
|
||||
#include <beast/container/aged_map.h>
|
||||
#include <mutex>
|
||||
|
||||
namespace ripple {
|
||||
|
||||
@@ -415,13 +416,12 @@ public:
|
||||
private:
|
||||
clock_type& m_clock;
|
||||
|
||||
using ScopedLockType = std::unique_lock <std::recursive_mutex>;
|
||||
std::recursive_mutex mLock;
|
||||
|
||||
using MapType = hash_map <uint256, InboundLedger::pointer>;
|
||||
|
||||
using LockType = RippleRecursiveMutex;
|
||||
using ScopedLockType = std::unique_lock <LockType>;
|
||||
LockType mLock;
|
||||
|
||||
MapType mLedgers;
|
||||
|
||||
beast::aged_map <uint256, std::uint32_t> mRecentFailures;
|
||||
|
||||
beast::insight::Counter mCounter;
|
||||
|
||||
Reference in New Issue
Block a user