예제 #1
0
 /// <summary>
 /// Get an execution unit based on the CLR thread pool.
 /// </summary>
 /// <returns>An instance of <see cref="IUnitOfExecution" /> that executes <see cref="Action" /> on the CLR thread pool.</returns>
 public IUnitOfExecution GetPool()
 {
     // we use all remaining threads
     return(this.poolUnitOfExecution ?? (this.poolUnitOfExecution = new PoolUnitOfExecution(this)));
 }
예제 #2
0
 /// <summary>
 /// Get an execution unit based on the CLR thread pool.
 /// </summary>
 /// <returns>An instance of <see cref="IUnitOfExecution" /> that executes <see cref="Action" /> on the CLR thread pool.</returns>
 public IUnitOfExecution GetPool()
 {
     // we use all remaining threads
     return this.poolUnitOfExecution ?? (this.poolUnitOfExecution = new PoolUnitOfExecution());
 }