Esempio n. 1
0
 public void delete_thread(ThreadBase th)
 {            
     th.exit = true; // Search must be already finished
     th.notify_one();
     th.handle.Join(); // Wait for thread termination                         
 }
Esempio n. 2
0
 public static bool thread_create(out System.Threading.Thread handle, ParameterizedThreadStart start_routine, ThreadBase thread)
 {
     handle = new System.Threading.Thread(start_routine);
     handle.Start(thread);
     return(true);
 }