diff options
author | Adam Frisby | 2009-04-24 05:33:23 +0000 |
---|---|---|
committer | Adam Frisby | 2009-04-24 05:33:23 +0000 |
commit | 883f7dde3884bca10f324f6a31e0882cf23c04d8 (patch) | |
tree | 53cdc16d97034bc125c148086c689badcc7f2906 /OpenSim/Region/OptionalModules/Scripting/Minimodule/Host.cs | |
parent | Update svn properties. (diff) | |
download | opensim-SC_OLD-883f7dde3884bca10f324f6a31e0882cf23c04d8.zip opensim-SC_OLD-883f7dde3884bca10f324f6a31e0882cf23c04d8.tar.gz opensim-SC_OLD-883f7dde3884bca10f324f6a31e0882cf23c04d8.tar.bz2 opensim-SC_OLD-883f7dde3884bca10f324f6a31e0882cf23c04d8.tar.xz |
* Implements Microthreading for MRM scripting.
* This is achieved through two new keywords "microthreaded" and "relax". example:
public microthreaded void MyFunc(...) {
...
relax;
...
}
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/Host.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Host.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Host.cs index 94796e4..193461d 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Host.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Host.cs | |||
@@ -38,11 +38,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
38 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 38 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
39 | private readonly IGraphics m_graphics; | 39 | private readonly IGraphics m_graphics; |
40 | private readonly IExtension m_extend; | 40 | private readonly IExtension m_extend; |
41 | private readonly IMicrothreader m_threader; | ||
41 | //private Scene m_scene; | 42 | //private Scene m_scene; |
42 | 43 | ||
43 | public Host(IObject m_obj, Scene m_scene, IExtension m_extend) | 44 | public Host(IObject m_obj, Scene m_scene, IExtension m_extend, IMicrothreader m_threader) |
44 | { | 45 | { |
45 | this.m_obj = m_obj; | 46 | this.m_obj = m_obj; |
47 | this.m_threader = m_threader; | ||
46 | this.m_extend = m_extend; | 48 | this.m_extend = m_extend; |
47 | //this.m_scene = m_scene; | 49 | //this.m_scene = m_scene; |
48 | 50 | ||
@@ -68,5 +70,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
68 | { | 70 | { |
69 | get { return m_extend; } | 71 | get { return m_extend; } |
70 | } | 72 | } |
73 | |||
74 | public IMicrothreader Microthreads | ||
75 | { | ||
76 | get { return m_threader; } | ||
77 | } | ||
71 | } | 78 | } |
72 | } | 79 | } |