Added ability to use SmartThreadPool

This commit is contained in:
Latif Khalifa
2013-07-18 20:00:11 +02:00
parent 21f82ab380
commit f1b8fcaf47
10 changed files with 248 additions and 14 deletions

View File

@@ -65,7 +65,7 @@ namespace OpenMetaverse
for (int i = 0; i < threadCount; i++)
{
ThreadPool.QueueUserWorkItem(
WorkPool.QueueUserWorkItem(
delegate(object o)
{
int threadIndex = (int)o;
@@ -120,7 +120,7 @@ namespace OpenMetaverse
for (int i = 0; i < threadCount; i++)
{
ThreadPool.QueueUserWorkItem(
WorkPool.QueueUserWorkItem(
delegate(object o)
{
int threadIndex = (int)o;
@@ -175,7 +175,7 @@ namespace OpenMetaverse
for (int i = 0; i < threadCount; i++)
{
ThreadPool.QueueUserWorkItem(
WorkPool.QueueUserWorkItem(
delegate(object o)
{
int threadIndex = (int)o;