aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-02-22 19:44:46 +0000
committerTeravus Ovares2008-02-22 19:44:46 +0000
commit582964800cc30e5ad08cf3be9a6a49fa96dd8b68 (patch)
tree02ef3aff1bfcbc3bca0d89663396f35e2963ca0a /OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
parent* Moved the EventManager over to delegate instances to prevent race conditions. (diff)
downloadopensim-SC-582964800cc30e5ad08cf3be9a6a49fa96dd8b68.zip
opensim-SC-582964800cc30e5ad08cf3be9a6a49fa96dd8b68.tar.gz
opensim-SC-582964800cc30e5ad08cf3be9a6a49fa96dd8b68.tar.bz2
opensim-SC-582964800cc30e5ad08cf3be9a6a49fa96dd8b68.tar.xz
* Moved all events except gridcomms and regioncomms over to Event Delegate instances to prevent event race conditions
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 2e4135c..8fd9edb 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -54,6 +54,7 @@ namespace OpenSim.Region.Environment.Scenes
54 protected ulong m_regionHandle; 54 protected ulong m_regionHandle;
55 55
56 public event PrimCountTaintedDelegate OnPrimCountTainted; 56 public event PrimCountTaintedDelegate OnPrimCountTainted;
57 private PrimCountTaintedDelegate handler001 = null;
57 58
58 /// <summary> 59 /// <summary>
59 /// Signal whether the non-inventory attributes of any prims in the group have changed 60 /// Signal whether the non-inventory attributes of any prims in the group have changed
@@ -1525,9 +1526,10 @@ namespace OpenSim.Region.Environment.Scenes
1525 /// </summary> 1526 /// </summary>
1526 public void TriggerTainted() 1527 public void TriggerTainted()
1527 { 1528 {
1528 if (OnPrimCountTainted != null) 1529 handler001 = OnPrimCountTainted;
1530 if (handler001 != null)
1529 { 1531 {
1530 OnPrimCountTainted(); 1532 handler001();
1531 } 1533 }
1532 } 1534 }
1533 1535