aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJohn Hurliman2009-10-21 14:03:49 -0700
committerJohn Hurliman2009-10-21 14:03:49 -0700
commitbb4da417adac6189c4d999857d43ca7eb858e3c4 (patch)
tree8f2be83832f80b100a6915a80174373b1f876f01
parent* Handle UseCircuitCode packets asynchronously. Adding an agent to a scene ca... (diff)
downloadopensim-SC_OLD-bb4da417adac6189c4d999857d43ca7eb858e3c4.zip
opensim-SC_OLD-bb4da417adac6189c4d999857d43ca7eb858e3c4.tar.gz
opensim-SC_OLD-bb4da417adac6189c4d999857d43ca7eb858e3c4.tar.bz2
opensim-SC_OLD-bb4da417adac6189c4d999857d43ca7eb858e3c4.tar.xz
Removing the Sleep(0) call from the OutgoingPacketHandler
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
index 209c0e0..be6f7ef 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
@@ -790,12 +790,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
790 // client. m_packetSent will be set to true if a packet is sent 790 // client. m_packetSent will be set to true if a packet is sent
791 m_scene.ClientManager.ForEachSync(ClientOutgoingPacketHandler); 791 m_scene.ClientManager.ForEachSync(ClientOutgoingPacketHandler);
792 792
793 // If a packet was sent, only do a minimum length context switch to allow 793 // If nothing was sent, sleep for the minimum amount of time before a
794 // other parts of the code to do work. If nothing was sent, sleep for the 794 // token bucket could get more tokens
795 // minimum amount of time before a token bucket could get more tokens 795 if (!m_packetSent)
796 if (m_packetSent)
797 Thread.Sleep(0);
798 else
799 Thread.Sleep((int)TickCountResolution); 796 Thread.Sleep((int)TickCountResolution);
800 } 797 }
801 catch (Exception ex) 798 catch (Exception ex)