コード例 #1
0
ファイル: FileSaturator.cs プロジェクト: melnx/Bermuda
        /// <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
ファイル: NetProcessor.cs プロジェクト: melnx/Bermuda
 public bool StopProcessor()
 {
     eventStop.Set();
     SaturationThread.Join();
     return(true);
 }