tune poll smartThreadpool use and give it a name
parent
9a3df6445e
commit
8558e97a44
|
@ -57,17 +57,20 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
private bool m_running = true;
|
||||
private int slowCount = 0;
|
||||
|
||||
private SmartThreadPool m_threadPool = new SmartThreadPool(20000, 12, 2);
|
||||
private SmartThreadPool m_threadPool;
|
||||
|
||||
public PollServiceRequestManager(BaseHttpServer pSrv, uint pWorkerThreadCount, int pTimeout)
|
||||
{
|
||||
m_server = pSrv;
|
||||
m_WorkerThreadCount = pWorkerThreadCount;
|
||||
m_workerThreads = new Thread[m_WorkerThreadCount];
|
||||
m_threadPool = new SmartThreadPool(30000, 15, 1);
|
||||
m_threadPool.Name = "PoolService";
|
||||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
m_threadPool.Start();
|
||||
//startup worker threads
|
||||
for (uint i = 0; i < m_WorkerThreadCount; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue