diff options
author | Teravus Ovares | 2008-02-20 01:17:21 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-02-20 01:17:21 +0000 |
commit | b77c48e75e5027eb8ae421e9d3105eae71cd4f52 (patch) | |
tree | 1cb66947b0628a1909a5350811609435ed83e4a4 /OpenSim/Region/Environment/Types/UpdateQueue.cs | |
parent | * Made a quickupdate method to run through only entities that have scheduled ... (diff) | |
download | opensim-SC_OLD-b77c48e75e5027eb8ae421e9d3105eae71cd4f52.zip opensim-SC_OLD-b77c48e75e5027eb8ae421e9d3105eae71cd4f52.tar.gz opensim-SC_OLD-b77c48e75e5027eb8ae421e9d3105eae71cd4f52.tar.bz2 opensim-SC_OLD-b77c48e75e5027eb8ae421e9d3105eae71cd4f52.tar.xz |
* Cleanup of some memory consuming items on ScenePresence.Close().
* Untangled a tangly shutdown loop for the ScenePresence.
* Suggested to the Garbage Collector that this may be a good time to >.>, <.< *gasp* collect the memory.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Types/UpdateQueue.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Types/UpdateQueue.cs b/OpenSim/Region/Environment/Types/UpdateQueue.cs index 0648476..90b7e73 100644 --- a/OpenSim/Region/Environment/Types/UpdateQueue.cs +++ b/OpenSim/Region/Environment/Types/UpdateQueue.cs | |||
@@ -48,6 +48,17 @@ namespace OpenSim.Region.Environment.Types | |||
48 | m_queue = new Queue<SceneObjectPart>(); | 48 | m_queue = new Queue<SceneObjectPart>(); |
49 | m_ids = new List<LLUUID>(); | 49 | m_ids = new List<LLUUID>(); |
50 | } | 50 | } |
51 | public void Clear() | ||
52 | { | ||
53 | lock (m_ids) | ||
54 | { | ||
55 | m_ids.Clear(); | ||
56 | } | ||
57 | lock (m_queue) | ||
58 | { | ||
59 | m_queue.Clear(); | ||
60 | } | ||
61 | } | ||
51 | 62 | ||
52 | public void Enqueue(SceneObjectPart part) | 63 | public void Enqueue(SceneObjectPart part) |
53 | { | 64 | { |