Ejemplo n.º 1
0
 public void stubStop()
 {
     SPH_Running = false;
     try {
         sp.Close();
     } catch (Exception) { }
     SPH_Thread.Join();
 }
Ejemplo n.º 2
0
 public void stubStop()
 {
     lock (this.syncLock) {
         SPH_Running = false;
     }
     try {
         // wake up the RBA_Stub thread if it's sleeping
         // between sequential messages
         this.sleeper.Set();
         // wait for the thread to finish
         SPH_Thread.Join();
     } catch (Exception) { }
 }