Пример #1
0
 /// <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));
 }
Пример #2
0
 /// <summary>
 /// Wait for the thread pool to be idle
 /// </summary>
 public bool WaitForIdle(int millisecondsTimeout)
 {
     _stp.ValidateWorkItemsGroupWaitForIdle(this);
     return(_isIdleWaitHandle.WaitOne(millisecondsTimeout, false));
 }