diff options
author | UbitUmarov | 2019-01-21 01:43:35 +0000 |
---|---|---|
committer | UbitUmarov | 2019-01-21 01:43:35 +0000 |
commit | 81bb620d64256998b861bc677c2435bf64d04f44 (patch) | |
tree | edb7df9b36c38f54df2fbc5949ea67bd898bff61 /OpenSim/Region/PhysicsModules/Ode/OdeScene.cs | |
parent | cosmetics on warp3d (diff) | |
download | opensim-SC-81bb620d64256998b861bc677c2435bf64d04f44.zip opensim-SC-81bb620d64256998b861bc677c2435bf64d04f44.tar.gz opensim-SC-81bb620d64256998b861bc677c2435bf64d04f44.tar.bz2 opensim-SC-81bb620d64256998b861bc677c2435bf64d04f44.tar.xz |
ubode try remove a legacy lock, that is nasty
Diffstat (limited to 'OpenSim/Region/PhysicsModules/Ode/OdeScene.cs')
-rw-r--r-- | OpenSim/Region/PhysicsModules/Ode/OdeScene.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs index 1b68105..c9bc754 100644 --- a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs +++ b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs | |||
@@ -124,7 +124,7 @@ namespace OpenSim.Region.PhysicsModule.ODE | |||
124 | /// /lib/x86_64-linux-gnu/libpthread.so.0(+0xfc60) [0x7f03c9849c60] | 124 | /// /lib/x86_64-linux-gnu/libpthread.so.0(+0xfc60) [0x7f03c9849c60] |
125 | /// .../opensim/bin/libode-x86_64.so(_Z12dCollideCCTLP6dxGeomS0_iP12dContactGeomi+0x92) [0x7f03b44bcf82] | 125 | /// .../opensim/bin/libode-x86_64.so(_Z12dCollideCCTLP6dxGeomS0_iP12dContactGeomi+0x92) [0x7f03b44bcf82] |
126 | /// </remarks> | 126 | /// </remarks> |
127 | internal static Object UniversalColliderSyncObject = new Object(); | 127 | // internal static Object UniversalColliderSyncObject = new Object(); |
128 | internal static Object SimulationLock = new Object(); | 128 | internal static Object SimulationLock = new Object(); |
129 | 129 | ||
130 | /// <summary> | 130 | /// <summary> |
@@ -498,6 +498,8 @@ namespace OpenSim.Region.PhysicsModule.ODE | |||
498 | 498 | ||
499 | public OdeScene(Scene pscene, IConfigSource psourceconfig, string pname, string pversion) | 499 | public OdeScene(Scene pscene, IConfigSource psourceconfig, string pname, string pversion) |
500 | { | 500 | { |
501 | SafeNativeMethods.AllocateODEDataForThread(~0U); | ||
502 | |||
501 | m_config = psourceconfig; | 503 | m_config = psourceconfig; |
502 | m_frameWorkScene = pscene; | 504 | m_frameWorkScene = pscene; |
503 | 505 | ||
@@ -878,7 +880,7 @@ namespace OpenSim.Region.PhysicsModule.ODE | |||
878 | { | 880 | { |
879 | int count; | 881 | int count; |
880 | 882 | ||
881 | lock (OdeScene.UniversalColliderSyncObject) | 883 | // lock (OdeScene.UniversalColliderSyncObject) |
882 | { | 884 | { |
883 | // We do this inside the lock so that we don't count any delay in acquiring it | 885 | // We do this inside the lock so that we don't count any delay in acquiring it |
884 | if (CollectStats) | 886 | if (CollectStats) |
@@ -2867,7 +2869,7 @@ namespace OpenSim.Region.PhysicsModule.ODE | |||
2867 | tempTick = tempTick2; | 2869 | tempTick = tempTick2; |
2868 | } | 2870 | } |
2869 | 2871 | ||
2870 | lock(SimulationLock) | 2872 | // lock(SimulationLock) |
2871 | SafeNativeMethods.WorldQuickStep(world, ODE_STEPSIZE); | 2873 | SafeNativeMethods.WorldQuickStep(world, ODE_STEPSIZE); |
2872 | 2874 | ||
2873 | if (CollectStats) | 2875 | if (CollectStats) |