mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
In SceneViewer, introduce an IsEnabled flag and perform Close() under an m_pendingObjects lock in order to avoid the race condition seen by danbanner in http://opensimulator.org/mantis/view.php?id=5669
This commit is contained in:
@@ -30,12 +30,21 @@ using OpenSim.Region.Framework.Scenes;
|
||||
|
||||
namespace OpenSim.Region.Framework.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Sends scheduled updates to it's associated ScenePresence.
|
||||
/// </summary>
|
||||
public interface ISceneViewer
|
||||
{
|
||||
void Reset();
|
||||
void Close();
|
||||
|
||||
/// <summary>
|
||||
/// Add the part to the queue of parts for which we need to send an update to the client
|
||||
/// </summary>
|
||||
/// <param name="part"></param>
|
||||
void QueuePartForUpdate(SceneObjectPart part);
|
||||
|
||||
void SendPrimUpdates();
|
||||
int GetPendingObjectsCount();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user