Removed the lock entirely

cpu-performance
Diva Canto 2013-06-11 15:50:12 -07:00
parent a0fed03e10
commit d8da83b4ff
1 changed files with 57 additions and 61 deletions

View File

@ -56,7 +56,6 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
// The cache
protected Dictionary<UUID, UserData> m_UserCache = new Dictionary<UUID, UserData>();
private object m_AddUserLock = new object();
#region ISharedRegionModule
@ -476,8 +475,6 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
UserData oldUser;
//lock the whole block - prevent concurrent update
lock (m_AddUserLock)
{
lock (m_UserCache)
m_UserCache.TryGetValue(id, out oldUser);
@ -546,7 +543,6 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
AddUserInternal(user);
}
}
}
void AddUserInternal(UserData user)
{