diff options
author | Tedd Hansen | 2008-02-21 10:43:24 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-02-21 10:43:24 +0000 |
commit | 7102ac77698f4bfd7406d6e8871db7b006c2cae2 (patch) | |
tree | 7253775d1a6ae64e2469b1ef79863aaebe83e1d1 /OpenSim/Region/Environment/Modules/ChatModule.cs | |
parent | Remove a couple compiler warnings. (diff) | |
download | opensim-SC-7102ac77698f4bfd7406d6e8871db7b006c2cae2.zip opensim-SC-7102ac77698f4bfd7406d6e8871db7b006c2cae2.tar.gz opensim-SC-7102ac77698f4bfd7406d6e8871db7b006c2cae2.tar.bz2 opensim-SC-7102ac77698f4bfd7406d6e8871db7b006c2cae2.tar.xz |
"threads" command now works. I've added manual tracking of threads (only if compiled in DEBUG mode)... Its ugly and even requires a separate thread to track the treads, but it will be very valuable in debugging.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/ChatModule.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/ChatModule.cs b/OpenSim/Region/Environment/Modules/ChatModule.cs index 0510ad6..c146941 100644 --- a/OpenSim/Region/Environment/Modules/ChatModule.cs +++ b/OpenSim/Region/Environment/Modules/ChatModule.cs | |||
@@ -113,7 +113,10 @@ namespace OpenSim.Region.Environment.Modules | |||
113 | m_irc_connector.Name = "IRCConnectorThread"; | 113 | m_irc_connector.Name = "IRCConnectorThread"; |
114 | m_irc_connector.IsBackground = true; | 114 | m_irc_connector.IsBackground = true; |
115 | } | 115 | } |
116 | if (!m_irc_connector.IsAlive) { m_irc_connector.Start(); } | 116 | if (!m_irc_connector.IsAlive) { |
117 | m_irc_connector.Start(); | ||
118 | OpenSim.Framework.ThreadTracker.Add(m_irc_connector); | ||
119 | } | ||
117 | } | 120 | } |
118 | catch (Exception ex) | 121 | catch (Exception ex) |
119 | { | 122 | { |
@@ -260,7 +263,10 @@ namespace OpenSim.Region.Environment.Modules | |||
260 | m_irc_connector.Name = "IRCConnectorThread"; | 263 | m_irc_connector.Name = "IRCConnectorThread"; |
261 | m_irc_connector.IsBackground = true; | 264 | m_irc_connector.IsBackground = true; |
262 | } | 265 | } |
263 | if (!m_irc_connector.IsAlive) { m_irc_connector.Start(); } | 266 | if (!m_irc_connector.IsAlive) { |
267 | m_irc_connector.Start(); | ||
268 | OpenSim.Framework.ThreadTracker.Add(m_irc_connector); | ||
269 | } | ||
264 | } | 270 | } |
265 | catch (Exception ex) | 271 | catch (Exception ex) |
266 | { | 272 | { |
@@ -421,11 +427,13 @@ namespace OpenSim.Region.Environment.Modules | |||
421 | pingSender.Name = "PingSenderThread"; | 427 | pingSender.Name = "PingSenderThread"; |
422 | pingSender.IsBackground = true; | 428 | pingSender.IsBackground = true; |
423 | pingSender.Start(); | 429 | pingSender.Start(); |
430 | OpenSim.Framework.ThreadTracker.Add(pingSender); | ||
424 | 431 | ||
425 | listener = new Thread(new ThreadStart(ListenerRun)); | 432 | listener = new Thread(new ThreadStart(ListenerRun)); |
426 | listener.Name = "IRCChatModuleListenerThread"; | 433 | listener.Name = "IRCChatModuleListenerThread"; |
427 | listener.IsBackground = true; | 434 | listener.IsBackground = true; |
428 | listener.Start(); | 435 | listener.Start(); |
436 | OpenSim.Framework.ThreadTracker.Add(listener); | ||
429 | 437 | ||
430 | m_writer.WriteLine(m_user); | 438 | m_writer.WriteLine(m_user); |
431 | m_writer.Flush(); | 439 | m_writer.Flush(); |