AForge.Video.Ximea.XimeaVideoSource.Stop C# (CSharp) Метод

Stop() публичный Метод

Stop video source.

The method stops the video source, so it no longer provides new video frames and does not consume any resources.

public Stop ( ) : void
Результат void
        public void Stop( )
        {
            Thread tempThread = null;

            lock ( sync )
            {
                tempThread = thread;
            }

            if ( tempThread != null )
            {
                if ( tempThread.Join( 0 ) == false )
                {
                    tempThread.Abort( );
                    tempThread.Join( );
                }
                Free( );
            }
        }