Esempio n. 1
0
 // Removes a thread after it is finished executing.
 private void thread_ThreadStopped(PulseThread t)
 {
     Threads.Remove(t);
 }
Esempio n. 2
0
 /// <summary>
 /// Adds a thread to the managed list and starts it.
 /// </summary>
 /// <param name="thread">thread to add to the managed list</param>
 public void StartThread(PulseThread thread)
 {
     thread.ThreadStopped += new PulseThread.ThreadStoppedEventDelegate(thread_ThreadStopped);
     Threads.Add(thread);
     thread.Start();
 }