29 using System.Collections.Generic;
30 using System.Runtime.Serialization;
31 using System.Security.Permissions;
33 using OpenSim.Region.Framework.Scenes;
35 namespace OpenSim.Region.Framework.Scenes.Types
39 private Queue<SceneObjectPart> m_queue;
41 private Dictionary<UUID, bool> m_ids;
43 private object m_syncObject =
new object();
47 get {
return m_queue.Count; }
52 m_queue =
new Queue<SceneObjectPart>();
53 m_ids =
new Dictionary<UUID, bool>();
69 if (!m_ids.ContainsKey(part.
UUID)) {
70 m_ids.Add(part.UUID,
true);
71 m_queue.Enqueue(part);
81 if (m_queue.Count > 0)
83 part = m_queue.Dequeue();
84 m_ids.Remove(part.UUID);
SceneObjectPart Dequeue()
void Enqueue(SceneObjectPart part)
Interactive OpenSim region server