Beispiel #1
0
 private void RegisterThread(UnityThreading.ThreadBase thread)
 {
     if (registeredThreads.Contains(thread))
     {
         return;
     }
     registeredThreads.Add(thread);
 }
Beispiel #2
0
        protected void DoInternal()
        {
            currentThread = this;
            var enumerator = Do();

            if (enumerator == null)
            {
                return;
            }

            do
            {
                var task = (TaskBase)enumerator.Current;
                if (task != null)
                {
                    this.DispatchAndWait(task);
                }
            }while (enumerator.MoveNext());
        }