From 7f3bfa277b894b90e660badf5ee47e4d99ef102c Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Tue, 16 Sep 2008 16:37:16 +0000
Subject: * minor: method documentation
---
OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 68 +++++++++++++++-----------
1 file changed, 39 insertions(+), 29 deletions(-)
(limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index 0dc1ade..f27a144 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -173,24 +173,24 @@ namespace OpenSim.Region.ScriptEngine.XEngine
ThreadPriority prio = ThreadPriority.BelowNormal;
switch (priority)
{
- case "Lowest":
- prio = ThreadPriority.Lowest;
- break;
- case "BelowNormal":
- prio = ThreadPriority.BelowNormal;
- break;
- case "Normal":
- prio = ThreadPriority.Normal;
- break;
- case "AboveNormal":
- prio = ThreadPriority.AboveNormal;
- break;
- case "Highest":
- prio = ThreadPriority.Highest;
- break;
- default:
- m_log.ErrorFormat("[XEngine] Invalid thread priority: '{0}'. Assuming BelowNormal", priority);
- break;
+ case "Lowest":
+ prio = ThreadPriority.Lowest;
+ break;
+ case "BelowNormal":
+ prio = ThreadPriority.BelowNormal;
+ break;
+ case "Normal":
+ prio = ThreadPriority.Normal;
+ break;
+ case "AboveNormal":
+ prio = ThreadPriority.AboveNormal;
+ break;
+ case "Highest":
+ prio = ThreadPriority.Highest;
+ break;
+ default:
+ m_log.ErrorFormat("[XEngine] Invalid thread priority: '{0}'. Assuming BelowNormal", priority);
+ break;
}
lock (m_ScriptEngines)
@@ -659,24 +659,31 @@ namespace OpenSim.Region.ScriptEngine.XEngine
return new XWorkItem(m_ThreadPool.QueueWorkItem(
new WorkItemCallback(this.ProcessEventHandler),
parms));
- }
-
- //
- // The main script engine worker
- //
+ }
+
+ ///
+ /// Process a previously posted script event.
+ ///
+ ///
+ ///
private object ProcessEventHandler(object parms)
{
CultureInfo USCulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = USCulture;
IScriptInstance instance = (ScriptInstance) parms;
+
+ //m_log.DebugFormat("[XENGINE]: Processing event for {0}", instance);
return instance.EventProcessor();
}
- //
- // Post event to an entire prim
- //
+ ///
+ /// Post event to an entire prim
+ ///
+ ///
+ ///
+ ///
public bool PostObjectEvent(uint localID, EventParams p)
{
bool result = false;
@@ -699,9 +706,12 @@ namespace OpenSim.Region.ScriptEngine.XEngine
return result;
}
- //
- // Post an event to a single script
- //
+ ///
+ /// Post an event to a single script
+ ///
+ ///
+ ///
+ ///
public bool PostScriptEvent(UUID itemID, EventParams p)
{
if (m_Scripts.ContainsKey(itemID))
--
cgit v1.1