change/fix previus commits

avinationmerge
UbitUmarov 2014-10-13 12:00:31 +01:00
parent 6794508f8c
commit cd87c4bec5
2 changed files with 11 additions and 3 deletions

View File

@ -64,8 +64,16 @@ namespace OpenSim.Framework.Servers.HttpServer
m_server = pSrv;
m_WorkerThreadCount = pWorkerThreadCount;
m_workerThreads = new Thread[m_WorkerThreadCount];
m_threadPool = new SmartThreadPool(30000, 15, 1);
m_threadPool.Name = "PoolService";
STPStartInfo startInfo = new STPStartInfo();
startInfo.IdleTimeout = 30000;
startInfo.MaxWorkerThreads = 15;
startInfo.MinWorkerThreads = 1;
startInfo.ThreadPriority = ThreadPriority.Normal;
startInfo.StartSuspended = true;
startInfo.ThreadPoolName = "PoolService";
m_threadPool = new SmartThreadPool(startInfo);
}
public void Start()

View File

@ -339,9 +339,9 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
startInfo.MinWorkerThreads = 1;
startInfo.ThreadPriority = ThreadPriority.BelowNormal;
startInfo.StartSuspended = true;
startInfo.ThreadPoolName = "ScriptsHttpReq";
ThreadPool = new SmartThreadPool(startInfo);
ThreadPool.Name = "ScriptsHttpReq";
ThreadPool.Start();
}
}