mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
Playing "Name that thread". Adding names and isbackground=true to all threads so it will be easier to debug.
This commit is contained in:
@@ -114,6 +114,8 @@ namespace pCampBot
|
||||
if (cs.GetString("lastname", "random") == "random") pb.lastname = CreateRandomName();
|
||||
|
||||
m_td[pos] = new Thread(pb.startup);
|
||||
m_td[pos].Name = "CampBot_" + pos;
|
||||
m_td[pos].IsBackground = true;
|
||||
m_td[pos].Start();
|
||||
m_lBot.Add(pb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user