make some threads background ones
parent
9a1d94f455
commit
4286ae43f2
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue