projects/Extant/Threading/ThreadRun.cs
/// <summary>
/// Instructs the thread to stop.
/// </summary>
Instructs the thread to stop.
Instructs the thread to stop .
public void Stop(bool blockWhileStopping = false)
        {
            if (!_isStopping && !_isStopped)
            {
                _isStopping = true;
                if (blockWhileStopping && !CurrentlyRunningInThisThread)
                    while (!_isStopped)
                        Thread.Sleep(0);
            }
        }
public void Stop ( bool blockWhileStopping = false ) { if ( ! _isStopping && ! _isStopped ) { _isStopping = true ; if ( blockWhileStopping && ! CurrentlyRunningInThisThread ) while ( ! _isStopped ) Thread . Sleep ( 0 ) ; } }
Instructs the thread to stop.
Instructs the thread to stop .
blockWhileStopping
bool