Example #1
0
        public void KillThread(string threadName)
        {
            ThreadWrapper thread = null;

            nameThreadMap.TryGetValue(threadName, out thread);

            if (thread != null)
            {
                thread.KillThread();
                nameThreadMap.Remove(threadName);
            }
        }
Example #2
0
 public void AttachThread(ThreadWrapper process)
 {
     nameThreadMap.Add(process.Name, process);
     process.Start();
 }