aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-08-28 00:37:22 +0000
committerMelanie Thielker2008-08-28 00:37:22 +0000
commitbf4d1fbb8dbfe3470d4381542e586e44d84c2a01 (patch)
tree42f43e101b5b092cdc69f36ea1afc8c7d0f3f1fb /OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
parentRemove self-referential build dependency that breaks build under (diff)
downloadopensim-SC-bf4d1fbb8dbfe3470d4381542e586e44d84c2a01.zip
opensim-SC-bf4d1fbb8dbfe3470d4381542e586e44d84c2a01.tar.gz
opensim-SC-bf4d1fbb8dbfe3470d4381542e586e44d84c2a01.tar.bz2
opensim-SC-bf4d1fbb8dbfe3470d4381542e586e44d84c2a01.tar.xz
Refactor IScriptInstance / IScriptEngine to use a generic IScriptWorkItem,
which is a thin wrapper around a IWorkItemResult from the SmartThreadPool. However, it is very easy to reimplement on top of basic threading and therefore makes the IScriptInstance class independent of the specific threading implementation.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index 8fd8a1c..a33554c 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -655,10 +655,10 @@ namespace OpenSim.Region.ScriptEngine.XEngine
655 // 655 //
656 // Used by script instances to queue event handler jobs 656 // Used by script instances to queue event handler jobs
657 // 657 //
658 public IWorkItemResult QueueEventHandler(object parms) 658 public IScriptWorkItem QueueEventHandler(object parms)
659 { 659 {
660 return m_ThreadPool.QueueWorkItem(new WorkItemCallback( 660 return new XWorkItem(m_ThreadPool.QueueWorkItem(new WorkItemCallback(
661 this.ProcessEventHandler), parms); 661 this.ProcessEventHandler), parms));
662 } 662 }
663 663
664 // 664 //