mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
Reserve a extra localID for a presence ( it will be localID + 1 )
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user