* 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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user