System.IO.Ports.SerialInterruptPortBase.OnBusyChanged C# (CSharp) Method

OnBusyChanged() protected method

protected OnBusyChanged ( bool busy ) : void
busy bool
return void
        protected override void OnBusyChanged(bool busy)
        {
            // currently not writing
            if (_writeThread != null)
            {
                if (busy) _writeThread.Suspend(); // if busy was set, pause sending the data
                else _writeThread.Resume();       // if it was cleared, resume sending the data
            }

            base.OnBusyChanged(busy);
        }