* minor: thought up a better name for the last allocated local id

0.6.0-stable
Justin Clarke Casey 2008-07-12 21:07:42 +00:00
parent 000d5e8b93
commit 7d97169351
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ namespace OpenSim.Region.Environment.Scenes
/// The last allocated local prim id. When a new local id is requested, the next number in the sequence is /// The last allocated local prim id. When a new local id is requested, the next number in the sequence is
/// dispenced. /// dispenced.
/// </summary> /// </summary>
private uint m_localId = 720000; private uint m_lastAllocatedLocalId = 720000;
private readonly Mutex _primAllocateMutex = new Mutex(false); private readonly Mutex _primAllocateMutex = new Mutex(false);
@ -1505,7 +1505,7 @@ namespace OpenSim.Region.Environment.Scenes
uint myID; uint myID;
_primAllocateMutex.WaitOne(); _primAllocateMutex.WaitOne();
myID = ++m_localId; myID = ++m_lastAllocatedLocalId;
_primAllocateMutex.ReleaseMutex(); _primAllocateMutex.ReleaseMutex();
return myID; return myID;