this looks more like ubode

0.9.1.0-post-fixes
UbitUmarov 2019-01-21 01:59:33 +00:00
parent 81bb620d64
commit a287a8e121
1 changed files with 3 additions and 8 deletions

View File

@ -281,8 +281,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde
public IntPtr StaticSpace; // space for the static things around
public IntPtr GroundSpace; // space for ground
public Object OdeLock;
public static Object SimulationLock;
public object OdeLock = new object();
// public static object SimulationLock = new object();
public IMesher mesher;
@ -310,8 +310,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde
public ODEScene(Scene pscene, IConfigSource psourceconfig, string pname, string pversion, bool pOSOdeLib)
{
OdeLock = new Object();
EngineType = pname;
PhysicsSceneName = EngineType + "/" + pscene.RegionInfo.RegionName;
EngineName = pname + " " + pversion;
@ -348,8 +346,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde
{
SafeNativeMethods.AllocateODEDataForThread(~0U);
SimulationLock = new Object();
nearCallback = near;
m_rayCastManager = new ODERayCastRequestManager(this);
@ -1512,8 +1508,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
int nodeframes = 0;
float fps = 0;
lock (SimulationLock)
lock(OdeLock)
lock(OdeLock)
{
if (world == IntPtr.Zero)
{