Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
 public bool StopProcessor()
 {
     eventStop.Set();
     SaturationThread.Join();
     return(true);
 }