diff options
author | Justin Clarke Casey | 2008-07-12 21:07:42 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-07-12 21:07:42 +0000 |
commit | 7d97169351f7462bc7382be5d05685987e78bba2 (patch) | |
tree | 9dca4ec1ea90645d0f9b7d878827276ce1a9a4da | |
parent | * minor: just some null guards and name changes to make it clearer that prim ... (diff) | |
download | opensim-SC-7d97169351f7462bc7382be5d05685987e78bba2.zip opensim-SC-7d97169351f7462bc7382be5d05685987e78bba2.tar.gz opensim-SC-7d97169351f7462bc7382be5d05685987e78bba2.tar.bz2 opensim-SC-7d97169351f7462bc7382be5d05685987e78bba2.tar.xz |
* minor: thought up a better name for the last allocated local id
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index a0df9a1..05026c3 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -76,7 +76,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
76 | /// The last allocated local prim id. When a new local id is requested, the next number in the sequence is | 76 | /// The last allocated local prim id. When a new local id is requested, the next number in the sequence is |
77 | /// dispenced. | 77 | /// dispenced. |
78 | /// </summary> | 78 | /// </summary> |
79 | private uint m_localId = 720000; | 79 | private uint m_lastAllocatedLocalId = 720000; |
80 | 80 | ||
81 | private readonly Mutex _primAllocateMutex = new Mutex(false); | 81 | private readonly Mutex _primAllocateMutex = new Mutex(false); |
82 | 82 | ||
@@ -1505,7 +1505,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1505 | uint myID; | 1505 | uint myID; |
1506 | 1506 | ||
1507 | _primAllocateMutex.WaitOne(); | 1507 | _primAllocateMutex.WaitOne(); |
1508 | myID = ++m_localId; | 1508 | myID = ++m_lastAllocatedLocalId; |
1509 | _primAllocateMutex.ReleaseMutex(); | 1509 | _primAllocateMutex.ReleaseMutex(); |
1510 | 1510 | ||
1511 | return myID; | 1511 | return myID; |