From 2a8ff937d513abbd84a96cbfdbe74bc710b60e6a Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Mon, 24 Nov 2008 15:14:33 +0000 Subject: * 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. --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 7ccd71c..17dca98 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -788,10 +788,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api } EntityBase SensedObject; - lock (World.Entities) - { - World.Entities.TryGetValue(objecUUID, out SensedObject); - } + World.Entities.TryGetValue(objecUUID, out SensedObject); if (SensedObject == null) return String.Empty; -- cgit v1.1