mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Merge branch 'master' of github.com:jedmccaleb/NewCoin
Conflicts: src/FieldNames.cpp This is guaranteed safe. Shortly, I'll change it to call a constructor that doesn't acquire the mutex.
This commit is contained in:
@@ -34,6 +34,8 @@ SField::ref SField::getField(int code)
|
||||
if ((type <= 0) || (field <= 0))
|
||||
return sfInvalid;
|
||||
|
||||
boost::mutex::scoped_lock sl(mapMutex);
|
||||
|
||||
boost::recursive_mutex::scoped_lock sl(mapMutex);
|
||||
|
||||
std::map<int, SField::ptr>::iterator it = codeToField.find(code);
|
||||
|
||||
Reference in New Issue
Block a user