make some threads background ones

0.9.0-post-fixes
UbitUmarov 2017-05-25 01:51:53 +01:00
parent 9a1d94f455
commit 4286ae43f2
3 changed files with 3 additions and 2 deletions

View File

@ -171,7 +171,7 @@ namespace OpenSim.Region.ClientStack.Linden
m_workerThreads[i] = WorkManager.StartThread(DoMeshRequests, m_workerThreads[i] = WorkManager.StartThread(DoMeshRequests,
String.Format("GetMeshWorker{0}", i), String.Format("GetMeshWorker{0}", i),
ThreadPriority.Normal, ThreadPriority.Normal,
false, true,
false, false,
null, null,
int.MaxValue); int.MaxValue);

View File

@ -139,7 +139,7 @@ namespace OpenSim.Region.ClientStack.Linden
m_workerThreads[i] = WorkManager.StartThread(DoTextureRequests, m_workerThreads[i] = WorkManager.StartThread(DoTextureRequests,
String.Format("GetTextureWorker{0}", i), String.Format("GetTextureWorker{0}", i),
ThreadPriority.Normal, ThreadPriority.Normal,
false, true,
false, false,
null, null,
int.MaxValue); int.MaxValue);

View File

@ -136,6 +136,7 @@ namespace OpenSim.Services.Connectors
for (int i = 0 ; i < 2 ; i++) for (int i = 0 ; i < 2 ; i++)
{ {
m_fetchThreads[i] = new Thread(AssetRequestProcessor); m_fetchThreads[i] = new Thread(AssetRequestProcessor);
m_fetchThreads[i].IsBackground = true;
m_fetchThreads[i].Start(); m_fetchThreads[i].Start();
} }
} }