aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-05-11 01:56:00 +0100
committerJustin Clark-Casey (justincc)2012-05-11 01:56:00 +0100
commit0ddf3c5289f32fc5ed3283d493f305286058e48c (patch)
tree66f13be4b6a75553a133ac43bbc384d8b4d58ade /OpenSim/Tools/pCampBot
parentDo each bot shutdown on its own threads to prevent one slow shutdown holding ... (diff)
downloadopensim-SC_OLD-0ddf3c5289f32fc5ed3283d493f305286058e48c.zip
opensim-SC_OLD-0ddf3c5289f32fc5ed3283d493f305286058e48c.tar.gz
opensim-SC_OLD-0ddf3c5289f32fc5ed3283d493f305286058e48c.tar.bz2
opensim-SC_OLD-0ddf3c5289f32fc5ed3283d493f305286058e48c.tar.xz
Do bot startup on another thread so console is responsive during this process
Diffstat (limited to 'OpenSim/Tools/pCampBot')
-rw-r--r--OpenSim/Tools/pCampBot/BotManager.cs1
-rw-r--r--OpenSim/Tools/pCampBot/pCampBot.cs5
2 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/BotManager.cs b/OpenSim/Tools/pCampBot/BotManager.cs
index d06c55b..6d4bdb1 100644
--- a/OpenSim/Tools/pCampBot/BotManager.cs
+++ b/OpenSim/Tools/pCampBot/BotManager.cs
@@ -222,6 +222,7 @@ namespace pCampBot
222 Thread pbThread = new Thread(pb.startup); 222 Thread pbThread = new Thread(pb.startup);
223 pbThread.Name = pb.Name; 223 pbThread.Name = pb.Name;
224 pbThread.IsBackground = true; 224 pbThread.IsBackground = true;
225
225 pbThread.Start(); 226 pbThread.Start();
226 } 227 }
227 228
diff --git a/OpenSim/Tools/pCampBot/pCampBot.cs b/OpenSim/Tools/pCampBot/pCampBot.cs
index ec5ad04..52e7501 100644
--- a/OpenSim/Tools/pCampBot/pCampBot.cs
+++ b/OpenSim/Tools/pCampBot/pCampBot.cs
@@ -27,6 +27,7 @@
27 27
28using System; 28using System;
29using System.Reflection; 29using System.Reflection;
30using System.Threading;
30using log4net; 31using log4net;
31using Nini.Config; 32using Nini.Config;
32using OpenSim.Framework; 33using OpenSim.Framework;
@@ -67,7 +68,9 @@ namespace pCampBot
67 BotManager bm = new BotManager(); 68 BotManager bm = new BotManager();
68 69
69 //startup specified number of bots. 1 is the default 70 //startup specified number of bots. 1 is the default
70 bm.dobotStartup(botcount, config); 71 Thread startBotThread = new Thread(o => bm.dobotStartup(botcount, config));
72 startBotThread.Name = "Initial start bots thread";
73 startBotThread.Start();
71 74
72 while (true) 75 while (true)
73 { 76 {