diff options
author | Justin Clark-Casey (justincc) | 2012-10-05 01:12:56 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-10-05 01:12:56 +0100 |
commit | f0178a6a413e35a45efcb0f7f0eeffc0daed15fe (patch) | |
tree | 82e1d79e5dfd6091bcffda3013cba8be7e61505f | |
parent | Make the asset retrieval concurrency a config switch. The current value (diff) | |
download | opensim-SC-f0178a6a413e35a45efcb0f7f0eeffc0daed15fe.zip opensim-SC-f0178a6a413e35a45efcb0f7f0eeffc0daed15fe.tar.gz opensim-SC-f0178a6a413e35a45efcb0f7f0eeffc0daed15fe.tar.bz2 opensim-SC-f0178a6a413e35a45efcb0f7f0eeffc0daed15fe.tar.xz |
refactor: Move OpenSim.Framework.PacketPool to OpenSim.Region.Clientstack.Linden.UDP
This is to allow it to use OpenSim.Framework.Monitoring in the future.
This is also a better location since the packet pool is linden udp specific
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs (renamed from OpenSim/Framework/PacketPool.cs) | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Framework/PacketPool.cs b/OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs index 41d17c5..fc9406b 100644 --- a/OpenSim/Framework/PacketPool.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs | |||
@@ -32,9 +32,8 @@ using OpenMetaverse; | |||
32 | using OpenMetaverse.Packets; | 32 | using OpenMetaverse.Packets; |
33 | using log4net; | 33 | using log4net; |
34 | 34 | ||
35 | namespace OpenSim.Framework | 35 | namespace OpenSim.Region.ClientStack.LindenUDP |
36 | { | 36 | { |
37 | |||
38 | public sealed class PacketPool | 37 | public sealed class PacketPool |
39 | { | 38 | { |
40 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 39 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
@@ -44,6 +43,9 @@ namespace OpenSim.Framework | |||
44 | private bool packetPoolEnabled = true; | 43 | private bool packetPoolEnabled = true; |
45 | private bool dataBlockPoolEnabled = true; | 44 | private bool dataBlockPoolEnabled = true; |
46 | 45 | ||
46 | /// <summary> | ||
47 | /// Pool of packets available for reuse. | ||
48 | /// </summary> | ||
47 | private readonly Dictionary<PacketType, Stack<Packet>> pool = new Dictionary<PacketType, Stack<Packet>>(); | 49 | private readonly Dictionary<PacketType, Stack<Packet>> pool = new Dictionary<PacketType, Stack<Packet>>(); |
48 | 50 | ||
49 | private static Dictionary<Type, Stack<Object>> DataBlocks = | 51 | private static Dictionary<Type, Stack<Object>> DataBlocks = |
@@ -244,4 +246,4 @@ namespace OpenSim.Framework | |||
244 | } | 246 | } |
245 | } | 247 | } |
246 | } | 248 | } |
247 | } | 249 | } \ No newline at end of file |