/// <summary> /// Datasaturator stop /// </summary> /// <returns></returns> private bool Stop() { //check if we are running if (SaturationThread == null || SaturationThread.Join(0)) { return(true); } //set the event eventStop.Set(); //wait on main thread to join SaturationThread.Join(); return(true); }
public bool StopProcessor() { eventStop.Set(); SaturationThread.Join(); return(true); }