Lock the object queue when dequeueing

avinationmerge
Melanie Thielker 2010-06-01 16:03:53 +02:00
parent f8e2d25739
commit c900134f91
1 changed files with 89 additions and 86 deletions

View File

@ -66,6 +66,8 @@ namespace OpenSim.Region.Framework.Scenes
}
public void SendPrimUpdates()
{
lock(m_pendingObjects)
{
if (m_pendingObjects == null)
{
@ -117,9 +119,9 @@ namespace OpenSim.Region.Framework.Scenes
if ((update.LastFullUpdateTime < part.TimeStampFull) ||
part.IsAttachment)
{
// m_log.DebugFormat(
// "[SCENE PRESENCE]: Fully updating prim {0}, {1} - part timestamp {2}",
// part.Name, part.UUID, part.TimeStampFull);
// m_log.DebugFormat(
// "[SCENE PRESENCE]: Fully updating prim {0}, {1} - part timestamp {2}",
// part.Name, part.UUID, part.TimeStampFull);
part.SendFullUpdate(m_presence.ControllingClient,
m_presence.GenerateClientFlags(part.UUID));
@ -136,9 +138,9 @@ namespace OpenSim.Region.Framework.Scenes
}
else if (update.LastTerseUpdateTime <= part.TimeStampTerse)
{
// m_log.DebugFormat(
// "[SCENE PRESENCE]: Tersely updating prim {0}, {1} - part timestamp {2}",
// part.Name, part.UUID, part.TimeStampTerse);
// m_log.DebugFormat(
// "[SCENE PRESENCE]: Tersely updating prim {0}, {1} - part timestamp {2}",
// part.Name, part.UUID, part.TimeStampTerse);
part.SendTerseUpdateToClient(m_presence.ControllingClient);
@ -169,6 +171,7 @@ namespace OpenSim.Region.Framework.Scenes
}
}
}
}
public void Reset()
{