aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorJohn Hurliman2009-10-09 02:49:55 -0700
committerJohn Hurliman2009-10-09 02:49:55 -0700
commit77e48a6725ccc30d33596b4f8c3dcdc956b7d1ba (patch)
tree013244a385e4285f3f70acd710c7e6e3b7cb9f22 /OpenSim/Region/Framework/Scenes
parentForgot to initialize m_writeLock (diff)
downloadopensim-SC_OLD-77e48a6725ccc30d33596b4f8c3dcdc956b7d1ba.zip
opensim-SC_OLD-77e48a6725ccc30d33596b4f8c3dcdc956b7d1ba.tar.gz
opensim-SC_OLD-77e48a6725ccc30d33596b4f8c3dcdc956b7d1ba.tar.bz2
opensim-SC_OLD-77e48a6725ccc30d33596b4f8c3dcdc956b7d1ba.tar.xz
Change the backup thread to run on a BackgroundWorker instead of a Thread. I don't have an explanation, but this seems to stop a slow but steady memory leak I was experiencing
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index ceff28b..6a550fa 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1186,10 +1186,10 @@ namespace OpenSim.Region.Framework.Scenes
1186 if (!m_backingup) 1186 if (!m_backingup)
1187 { 1187 {
1188 m_backingup = true; 1188 m_backingup = true;
1189 Thread backupthread = new Thread(Backup); 1189
1190 backupthread.Name = "BackupWriter"; 1190 System.ComponentModel.BackgroundWorker backupWorker = new System.ComponentModel.BackgroundWorker();
1191 backupthread.IsBackground = true; 1191 backupWorker.DoWork += delegate(object sender, System.ComponentModel.DoWorkEventArgs e) { Backup(); };
1192 backupthread.Start(); 1192 backupWorker.RunWorkerAsync();
1193 } 1193 }
1194 } 1194 }
1195 1195