aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAdam Frisby2009-02-23 07:31:13 +0000
committerAdam Frisby2009-02-23 07:31:13 +0000
commit13b089636d289d56d79255ad2c494221f55a91e3 (patch)
tree9a46a4da09aaab40d54e863e6a6389d7d1c69db0
parent* Performance Changes: (diff)
downloadopensim-SC_OLD-13b089636d289d56d79255ad2c494221f55a91e3.zip
opensim-SC_OLD-13b089636d289d56d79255ad2c494221f55a91e3.tar.gz
opensim-SC_OLD-13b089636d289d56d79255ad2c494221f55a91e3.tar.bz2
opensim-SC_OLD-13b089636d289d56d79255ad2c494221f55a91e3.tar.xz
* Fix for recent thread patch - IsAlive apparently is not as reliable as ThreadState.
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 8d81812..984c567 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -858,10 +858,11 @@ namespace OpenSim.Region.Framework.Scenes
858 if (m_updateEntitiesThread == null) 858 if (m_updateEntitiesThread == null)
859 { 859 {
860 m_updateEntitiesThread = new Thread(m_sceneGraph.UpdateEntities); 860 m_updateEntitiesThread = new Thread(m_sceneGraph.UpdateEntities);
861
861 ThreadTracker.Add(m_updateEntitiesThread); 862 ThreadTracker.Add(m_updateEntitiesThread);
862 } 863 }
863 864
864 if(!m_updateEntitiesThread.IsAlive) 865 if(m_updateEntitiesThread.ThreadState == ThreadState.Stopped)
865 m_updateEntitiesThread.Start(); 866 m_updateEntitiesThread.Start();
866 867
867 //m_sceneGraph.UpdateEntities(); 868 //m_sceneGraph.UpdateEntities();