Revert the locking changes in LLCLientView

avinationmerge
Melanie 2010-12-16 20:11:26 +01:00
parent d457b4c4b1
commit 4719e925b8
1 changed files with 233 additions and 242 deletions

View File

@ -328,7 +328,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// thread servicing the m_primFullUpdates queue after a kill. If this happens the object persists as an
/// ownerless phantom.
///
/// All manipulation of this set has to occur under a lock
/// All manipulation of this set has to occur under an m_entityUpdates.SyncRoot lock
///
/// </value>
protected HashSet<uint> m_killRecord;
@ -1536,14 +1536,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(kill, ThrottleOutPacketType.State);
return;
}
lock (m_killRecord)
{
m_killRecord.Add(localIDs[0]);
}
}
else
{
lock (m_killRecord)
lock (m_entityUpdates.SyncRoot)
{
foreach (uint localID in localIDs)
m_killRecord.Add(localID);
@ -3598,8 +3595,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
int updatesThisCall = 0;
EntityUpdate update;
lock (m_killRecord)
{
while (updatesThisCall < maxUpdates)
{
lock (m_entityUpdates.SyncRoot)
@ -3656,8 +3651,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
continue;
}
if (part.ParentGroup.IsAttachment && m_disableFacelights)
{
if (part.ParentGroup.IsAttachment && m_disableFacelights)
{
if (part.ParentGroup.RootPart.Shape.State != (byte)AttachmentPoint.LeftHand &&
@ -3845,8 +3838,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(packet, ThrottleOutPacketType.Task, true);
}
}
}
#endregion Packet Sending
}