Playing "Name that thread". Adding names and isbackground=true to all threads so it will be easier to debug.

This commit is contained in:
Tedd Hansen
2008-02-19 12:02:53 +00:00
parent 62f608b152
commit 47c909ca0a
9 changed files with 28 additions and 7 deletions

View File

@@ -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);
}