minor: Add method doc to EventManager.OnNewClient, OnClientLogin, ClientClosed, OnRemovePresence that any long-running operations should be launched on a thread separate to the event thread.
parent
e685f7ab68
commit
63f1efc414
|
@ -121,13 +121,21 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// This is triggered for both child and root agent client connections.
|
/// This is triggered for both child and root agent client connections.
|
||||||
|
///
|
||||||
/// Triggered before OnClientLogin.
|
/// Triggered before OnClientLogin.
|
||||||
|
///
|
||||||
|
/// This is triggered under per-agent lock. So if you want to perform any long-running operations, please
|
||||||
|
/// do this on a separate thread.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public event OnNewClientDelegate OnNewClient;
|
public event OnNewClientDelegate OnNewClient;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fired if the client entering this sim is doing so as a new login
|
/// Fired if the client entering this sim is doing so as a new login
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This is triggered under per-agent lock. So if you want to perform any long-running operations, please
|
||||||
|
/// do this on a separate thread.
|
||||||
|
/// </remarks>
|
||||||
public event Action<IClientAPI> OnClientLogin;
|
public event Action<IClientAPI> OnClientLogin;
|
||||||
|
|
||||||
public delegate void OnNewPresenceDelegate(ScenePresence presence);
|
public delegate void OnNewPresenceDelegate(ScenePresence presence);
|
||||||
|
@ -149,6 +157,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Triggered in <see cref="OpenSim.Region.Framework.Scenes.Scene.AddNewClient"/> which is used by both
|
/// Triggered in <see cref="OpenSim.Region.Framework.Scenes.Scene.AddNewClient"/> which is used by both
|
||||||
/// <see cref="OpenSim.Framework.PresenceType.User">users</see> and <see cref="OpenSim.Framework.PresenceType.Npc">NPCs</see>
|
/// <see cref="OpenSim.Framework.PresenceType.User">users</see> and <see cref="OpenSim.Framework.PresenceType.Npc">NPCs</see>
|
||||||
|
///
|
||||||
|
/// Triggered under per-agent lock. So if you want to perform any long-running operations, please
|
||||||
|
/// do this on a separate thread.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public event OnRemovePresenceDelegate OnRemovePresence;
|
public event OnRemovePresenceDelegate OnRemovePresence;
|
||||||
|
|
||||||
|
@ -425,6 +436,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// At the point of firing, the scene still contains the client's scene presence.
|
/// At the point of firing, the scene still contains the client's scene presence.
|
||||||
|
///
|
||||||
|
/// This is triggered under per-agent lock. So if you want to perform any long-running operations, please
|
||||||
|
/// do this on a separate thread.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public event ClientClosed OnClientClosed;
|
public event ClientClosed OnClientClosed;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue