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:
JoelKatz
2012-10-05 13:07:09 -07:00
5 changed files with 95 additions and 44 deletions

View File

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