From 5162ebd2ccfb1983015a68e990474938b5bee6c6 Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Fri, 5 Oct 2012 01:12:56 +0100 Subject: [PATCH] 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 --- .../ClientStack/Linden/UDP}/PacketPool.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename OpenSim/{Framework => Region/ClientStack/Linden/UDP}/PacketPool.cs (98%) diff --git a/OpenSim/Framework/PacketPool.cs b/OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs similarity index 98% rename from OpenSim/Framework/PacketPool.cs rename to OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs index 41d17c54f2..fc9406b88d 100644 --- a/OpenSim/Framework/PacketPool.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs @@ -32,9 +32,8 @@ using OpenMetaverse; using OpenMetaverse.Packets; using log4net; -namespace OpenSim.Framework +namespace OpenSim.Region.ClientStack.LindenUDP { - public sealed class PacketPool { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); @@ -44,6 +43,9 @@ namespace OpenSim.Framework private bool packetPoolEnabled = true; private bool dataBlockPoolEnabled = true; + /// + /// Pool of packets available for reuse. + /// private readonly Dictionary> pool = new Dictionary>(); private static Dictionary> DataBlocks = @@ -244,4 +246,4 @@ namespace OpenSim.Framework } } } -} +} \ No newline at end of file