Move lock from RPCHandler to InfoSub.

This commit is contained in:
Stefan Thomas
2012-11-10 15:16:30 -08:00
parent a92202c7e4
commit b6bbef84cf
3 changed files with 7 additions and 13 deletions

View File

@@ -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