* ThreadPool starvation check is done all the time now, not only under debugging mode

* Added Helpers.EnUsCulture for float parsing, converted all of the Single and Double parsing to be internationally friendly

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1089 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2007-03-31 22:49:25 +00:00
parent aab41c4235
commit 003ca29a1d
8 changed files with 33 additions and 27 deletions

View File

@@ -840,16 +840,13 @@ namespace libsecondlife
#endregion FireCallbacks
if (Client.Settings.DEBUG)
int workerThreads, completionPortThreads;
ThreadPool.GetAvailableThreads(out workerThreads, out completionPortThreads);
if (workerThreads == 0 || completionPortThreads == 0)
{
int workerThreads, completionPortThreads;
ThreadPool.GetAvailableThreads(out workerThreads, out completionPortThreads);
if (workerThreads == 0 || completionPortThreads == 0)
{
Client.Log(String.Format(
"Thread starvation, packets will be dropped. WorkerThreads: {0}, CompletionPortThreads: {1}",
workerThreads, completionPortThreads), Helpers.LogLevel.Error);
}
Client.Log(String.Format(
"Thread starvation, packets will be dropped. WorkerThreads: {0}, CompletionPortThreads: {1}",
workerThreads, completionPortThreads), Helpers.LogLevel.Error);
}
}