AForge.Video.Kinect.Kinect.StopStatusThread C# (CSharp) Method

StopStatusThread() private static method

private static StopStatusThread ( ) : void
return void
        private static void StopStatusThread( )
        {
            lock ( statusThreadSync )
            {
                stopEvent.Set( );
                if ( !updateStatusThread.Join( 2000 ) )
                {
                    updateStatusThread.Abort( );
                }

                stopEvent.Close( );
                updateStatusThread = null;
                stopEvent = null;
            }
        }