示例#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);
        }
示例#2
0
 public bool StopProcessor()
 {
     eventStop.Set();
     SaturationThread.Join();
     return(true);
 }