29 using System.Collections;
30 using System.Collections.Generic;
31 using System.Reflection;
34 using OpenSim.Region.OptionalModules.Scripting.Minimodule.Interfaces;
36 namespace OpenSim.
Region.OptionalModules.Scripting.Minimodule
40 private readonly List<IEnumerator> m_threads =
new List<IEnumerator>();
45 m_threads.Add(microthread.GetEnumerator());
48 public void Tick(
int count)
52 if (m_threads.Count == 0)
56 while (m_threads.Count > 0 && i < count)
60 bool running = m_threads[i%m_threads.Count].MoveNext();
64 m_threads.Remove(m_threads[i%m_threads.Count]);
System.Collections.IEnumerable IEnumerable
void Run(IEnumerable microthread)