ArchiveComparer2.Library.ArchiveDuplicateDetector.Stop C# (CSharp) Method

Stop() public method

public Stop ( ) : void
return void
        public void Stop()
        {
            // Signal the shutdown event
            _shutdownEvent.Set();

            // Make sure to resume any paused threads
            _pauseEvent.Set();

            NotifyCaller("Stopped", OperationStatus.STOPPED);

            if (_thread != null)
            {
                // Wait for the thread to exit
                _thread.Join();
            }
        }