From 225b925f4ec6a0b7dfec27589d0aea40ce0a8e54 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Mon, 21 Nov 2011 19:48:31 +0000 Subject: Comment out calls to OdeScene.waitForSpaceUnlock() since that method does nothing right now --- OpenSim/Region/Physics/OdePlugin/OdeScene.cs | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'OpenSim/Region/Physics/OdePlugin/OdeScene.cs') diff --git a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs index 9c3c077..b952b30 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs @@ -679,11 +679,11 @@ namespace OpenSim.Region.Physics.OdePlugin } } - internal void waitForSpaceUnlock(IntPtr space) - { - //if (space != IntPtr.Zero) - //while (d.SpaceLockQuery(space)) { } // Wait and do nothing - } +// internal void waitForSpaceUnlock(IntPtr space) +// { +// //if (space != IntPtr.Zero) +// //while (d.SpaceLockQuery(space)) { } // Wait and do nothing +// } // /// // /// Debug space message for printing the space that a prim/avatar is in. @@ -2303,7 +2303,7 @@ namespace OpenSim.Region.Physics.OdePlugin { if (d.GeomIsSpace(currentspace)) { - waitForSpaceUnlock(currentspace); +// waitForSpaceUnlock(currentspace); d.SpaceRemove(currentspace, geom); } else @@ -2319,7 +2319,7 @@ namespace OpenSim.Region.Physics.OdePlugin { if (d.GeomIsSpace(currentspace)) { - waitForSpaceUnlock(sGeomIsIn); +// waitForSpaceUnlock(sGeomIsIn); d.SpaceRemove(sGeomIsIn, geom); } else @@ -2337,8 +2337,8 @@ namespace OpenSim.Region.Physics.OdePlugin { if (d.GeomIsSpace(currentspace)) { - waitForSpaceUnlock(currentspace); - waitForSpaceUnlock(space); +// waitForSpaceUnlock(currentspace); +// waitForSpaceUnlock(space); d.SpaceRemove(space, currentspace); // free up memory used by the space. @@ -2362,7 +2362,7 @@ namespace OpenSim.Region.Physics.OdePlugin { if (d.GeomIsSpace(currentspace)) { - waitForSpaceUnlock(currentspace); +// waitForSpaceUnlock(currentspace); d.SpaceRemove(currentspace, geom); } else @@ -2378,7 +2378,7 @@ namespace OpenSim.Region.Physics.OdePlugin { if (d.GeomIsSpace(sGeomIsIn)) { - waitForSpaceUnlock(sGeomIsIn); +// waitForSpaceUnlock(sGeomIsIn); d.SpaceRemove(sGeomIsIn, geom); } else @@ -2417,9 +2417,10 @@ namespace OpenSim.Region.Physics.OdePlugin // creating a new space for prim and inserting it into main space. staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY] = d.HashSpaceCreate(IntPtr.Zero); d.GeomSetCategoryBits(staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY], (int)CollisionCategories.Space); - waitForSpaceUnlock(space); +// waitForSpaceUnlock(space); d.SpaceSetSublevel(space, 1); d.SpaceAdd(space, staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY]); + return staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY]; } -- cgit v1.1