mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
* Removed more locks on Entities
* Entities should now in theory be lock-free externally. * Other properties may cause blocking however[?]. * ScenePresence maintains separate locks so isn't fixed by this commit.
This commit is contained in:
@@ -664,16 +664,13 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||
public void UpdateLandPrimCounts()
|
||||
{
|
||||
ResetAllLandPrimCounts();
|
||||
lock (m_scene.Entities)
|
||||
foreach (EntityBase obj in m_scene.Entities)
|
||||
{
|
||||
foreach (EntityBase obj in m_scene.Entities)
|
||||
if (obj != null)
|
||||
{
|
||||
if (obj != null)
|
||||
if ((obj is SceneObjectGroup) && !obj.IsDeleted && !((SceneObjectGroup) obj).IsAttachment)
|
||||
{
|
||||
if ((obj is SceneObjectGroup) && !((SceneObjectGroup)obj).IsDeleted && !((SceneObjectGroup)obj).IsAttachment)
|
||||
{
|
||||
m_scene.EventManager.TriggerParcelPrimCountAdd((SceneObjectGroup)obj);
|
||||
}
|
||||
m_scene.EventManager.TriggerParcelPrimCountAdd((SceneObjectGroup) obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user