mirror of
https://github.com/opensim/opensim.git
synced 2026-07-18 05:35:36 +08:00
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.
This commit is contained in:
@@ -655,10 +655,10 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
//
|
||||
// Used by script instances to queue event handler jobs
|
||||
//
|
||||
public IWorkItemResult QueueEventHandler(object parms)
|
||||
public IScriptWorkItem QueueEventHandler(object parms)
|
||||
{
|
||||
return m_ThreadPool.QueueWorkItem(new WorkItemCallback(
|
||||
this.ProcessEventHandler), parms);
|
||||
return new XWorkItem(m_ThreadPool.QueueWorkItem(new WorkItemCallback(
|
||||
this.ProcessEventHandler), parms));
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user