Exemple #1
0
 /// <summary>
 /// Queue work item to the pool. The work item
 /// will run right away if a thread is available
 /// other wise it will be queued. Exact semantics
 /// will depend on implementation
 /// </summary>
 /// <param name="context">the stage's worker
 /// execution context</param>
 public override void QueueWork(StageWorkerContext context)
 {
     ThreadPoolUtil.QueueUserWorkItem(StageWorkerThread, context);
 }
Exemple #2
0
 /// <summary>
 /// Gracefully shutdown
 /// </summary>
 public override void ShutDown()
 {
     ThreadPoolUtil.Shutdown();
 }