Reserve a extra localID for a presence ( it will be localID + 1 )

This commit is contained in:
UbitUmarov
2014-08-20 17:54:23 +01:00
parent b21b6532b0
commit 16cf3967b4
2 changed files with 13 additions and 1 deletions

View File

@@ -295,6 +295,18 @@ namespace OpenSim.Region.Framework.Scenes
return myID;
}
public uint AllocatePresenceLocalId()
{
uint myID;
_primAllocateMutex.WaitOne();
myID = ++m_lastAllocatedLocalId;
++m_lastAllocatedLocalId;
_primAllocateMutex.ReleaseMutex();
return myID;
}
#region Module Methods