Rename Watchdog.GetThreads() to GetThreadsInfo() to reflect what it actually returns and for consistency.

xassetservice
Justin Clark-Casey (justincc) 2012-02-24 05:15:47 +00:00
parent 84735b644c
commit 9e6ffe7798
2 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@ namespace OpenSim.Framework.Servers
string reportFormat = "{0,6} {1,35} {2,16} {3,13} {4,10} {5,30}"; string reportFormat = "{0,6} {1,35} {2,16} {3,13} {4,10} {5,30}";
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
Watchdog.ThreadWatchdogInfo[] threads = Watchdog.GetThreads(); Watchdog.ThreadWatchdogInfo[] threads = Watchdog.GetThreadsInfo();
sb.Append(threads.Length + " threads are being tracked:" + Environment.NewLine); sb.Append(threads.Length + " threads are being tracked:" + Environment.NewLine);

View File

@ -230,7 +230,7 @@ namespace OpenSim.Framework
/// Get currently watched threads for diagnostic purposes /// Get currently watched threads for diagnostic purposes
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public static ThreadWatchdogInfo[] GetThreads() public static ThreadWatchdogInfo[] GetThreadsInfo()
{ {
lock (m_threads) lock (m_threads)
return m_threads.Values.ToArray(); return m_threads.Values.ToArray();