Make QueuePacket() lock free. Eliminates an unneeded lock()
parent
7fb103d374
commit
e09ff343fb
|
@ -251,8 +251,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
{
|
||||
// Add acks to outgoing packets
|
||||
//
|
||||
lock(m_PendingAcks)
|
||||
{
|
||||
if(m_PendingAcks.Count > 0)
|
||||
{
|
||||
int count = m_PendingAcks.Count;
|
||||
|
@ -271,7 +269,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
packet.TickCount = System.Environment.TickCount;
|
||||
|
||||
|
|
Loading…
Reference in New Issue