If BulletSim is running on its own threads, start this thread via the thread watchdog.
This allows us to see the presence of the permanent thread via the "show threads" console comand. Also adds the region name to the thread name.0.8-extended
parent
3f2aaa910a
commit
78734dd723
|
@ -32,6 +32,7 @@ using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using OpenSim.Framework;
|
using OpenSim.Framework;
|
||||||
|
using OpenSim.Framework.Monitoring;
|
||||||
using OpenSim.Region.Framework;
|
using OpenSim.Region.Framework;
|
||||||
using OpenSim.Region.CoreModules;
|
using OpenSim.Region.CoreModules;
|
||||||
using Logging = OpenSim.Region.CoreModules.Framework.Statistics.Logging;
|
using Logging = OpenSim.Region.CoreModules.Framework.Statistics.Logging;
|
||||||
|
@ -286,9 +287,13 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
|
||||||
if (BSParam.UseSeparatePhysicsThread)
|
if (BSParam.UseSeparatePhysicsThread)
|
||||||
{
|
{
|
||||||
// The physics simulation should happen independently of the heartbeat loop
|
// The physics simulation should happen independently of the heartbeat loop
|
||||||
m_physicsThread = new Thread(BulletSPluginPhysicsThread);
|
m_physicsThread
|
||||||
m_physicsThread.Name = BulletEngineName;
|
= Watchdog.StartThread(
|
||||||
m_physicsThread.Start();
|
BulletSPluginPhysicsThread,
|
||||||
|
string.Format("{0} ({1})", BulletEngineName, RegionName),
|
||||||
|
ThreadPriority.Normal,
|
||||||
|
true,
|
||||||
|
false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1746,6 +1746,7 @@
|
||||||
<Reference name="OpenMetaverseTypes" path="../../../../bin/"/>
|
<Reference name="OpenMetaverseTypes" path="../../../../bin/"/>
|
||||||
<Reference name="Nini.dll" path="../../../../bin/"/>
|
<Reference name="Nini.dll" path="../../../../bin/"/>
|
||||||
<Reference name="OpenSim.Framework"/>
|
<Reference name="OpenSim.Framework"/>
|
||||||
|
<Reference name="OpenSim.Framework.Monitoring"/>
|
||||||
<Reference name="OpenSim.Region.Framework"/>
|
<Reference name="OpenSim.Region.Framework"/>
|
||||||
<Reference name="OpenSim.Region.CoreModules"/>
|
<Reference name="OpenSim.Region.CoreModules"/>
|
||||||
<Reference name="OpenSim.Region.OptionalModules"/>
|
<Reference name="OpenSim.Region.OptionalModules"/>
|
||||||
|
|
Loading…
Reference in New Issue