diff options
author | UbitUmarov | 2014-08-20 17:54:23 +0100 |
---|---|---|
committer | UbitUmarov | 2014-08-20 17:54:23 +0100 |
commit | 16cf3967b4b2929e20f13a5d9ae91dc0e7ac03ef (patch) | |
tree | 7e65e8ad1edd17db5343e560498aa97ad4f3e13c /OpenSim/Region/Framework/Scenes/SceneBase.cs | |
parent | sending attachment kills before putting them back doesnt cover all cases (diff) | |
download | opensim-SC_OLD-16cf3967b4b2929e20f13a5d9ae91dc0e7ac03ef.zip opensim-SC_OLD-16cf3967b4b2929e20f13a5d9ae91dc0e7ac03ef.tar.gz opensim-SC_OLD-16cf3967b4b2929e20f13a5d9ae91dc0e7ac03ef.tar.bz2 opensim-SC_OLD-16cf3967b4b2929e20f13a5d9ae91dc0e7ac03ef.tar.xz |
Reserve a extra localID for a presence ( it will be localID + 1 )
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneBase.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneBase.cs b/OpenSim/Region/Framework/Scenes/SceneBase.cs index dd0c828..f5be7a7 100644 --- a/OpenSim/Region/Framework/Scenes/SceneBase.cs +++ b/OpenSim/Region/Framework/Scenes/SceneBase.cs | |||
@@ -295,6 +295,18 @@ namespace OpenSim.Region.Framework.Scenes | |||
295 | 295 | ||
296 | return myID; | 296 | return myID; |
297 | } | 297 | } |
298 | |||
299 | public uint AllocatePresenceLocalId() | ||
300 | { | ||
301 | uint myID; | ||
302 | |||
303 | _primAllocateMutex.WaitOne(); | ||
304 | myID = ++m_lastAllocatedLocalId; | ||
305 | ++m_lastAllocatedLocalId; | ||
306 | _primAllocateMutex.ReleaseMutex(); | ||
307 | |||
308 | return myID; | ||
309 | } | ||
298 | 310 | ||
299 | #region Module Methods | 311 | #region Module Methods |
300 | 312 | ||