mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Move lock from RPCHandler to InfoSub.
This commit is contained in:
@@ -33,11 +33,14 @@ protected:
|
||||
boost::unordered_set<RippleAddress> mSubAccountInfo;
|
||||
boost::unordered_set<RippleAddress> mSubAccountTransaction;
|
||||
|
||||
boost::mutex mLock;
|
||||
|
||||
public:
|
||||
void insertSubAccountInfo(RippleAddress addr)
|
||||
{
|
||||
mSubAccountInfo.insert(addr);
|
||||
}
|
||||
void insertSubAccountInfo(RippleAddress addr)
|
||||
{
|
||||
boost::mutex::scoped_lock sl(mLock);
|
||||
mSubAccountInfo.insert(addr);
|
||||
}
|
||||
};
|
||||
|
||||
class NetworkOPs
|
||||
|
||||
Reference in New Issue
Block a user