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

            nameThreadMap.TryGetValue(threadName, out thread);

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