/// <summary> /// Wait for the thread pool to be idle /// </summary> public override bool WaitForIdle(int millisecondsTimeout) { SmartThreadPool.ValidateWorkItemsGroupWaitForIdle(this); return(STPEventWaitHandle.WaitOne(_isIdleWaitHandle, millisecondsTimeout, false)); }
/// <summary> /// Wait for the thread pool to be idle /// </summary> public bool WaitForIdle(int millisecondsTimeout) { _stp.ValidateWorkItemsGroupWaitForIdle(this); return(_isIdleWaitHandle.WaitOne(millisecondsTimeout, false)); }