private ExtendedThreadPool(Builder builder)
 {
     Name = builder.Name;
     SetThreadingRange(builder);
     MultiThreadingCapacity = builder.MultiThreadingCapacity;
     _taskQueueController = builder.TaskQueueController;
 }
Exemplo n.º 2
0
 private ExtendedThreadPool(Builder builder)
 {
     Name = builder.Name;
     SetThreadingRange(builder);
     MultiThreadingCapacity = builder.MultiThreadingCapacity;
     _taskQueueController   = builder.TaskQueueController;
 }
Exemplo n.º 3
0
 internal ThreadPool(ThreadPoolConfig config)
 {
     config.Validate();
     SetThreadingRange(config);
     Name = config.Name;
     MultiThreadingCapacity = config.MultiThreadingCapacity;
     _taskQueueController = config.TaskQueueController;
 }
Exemplo n.º 4
0
 internal ThreadPool(ThreadPoolConfig config)
 {
     config.Validate();
     SetThreadingRange(config);
     Name = config.Name;
     MultiThreadingCapacity = config.MultiThreadingCapacity;
     _taskQueueController   = config.TaskQueueController;
 }
Exemplo n.º 5
0
 private WorkThread(Builder builder)
 {
     _taskQueueController = builder.TaskQueueController;
     _thread = new Thread(DoWork)
               {
                   Name = builder.Name,
                   IsBackground = true,
               };
 }
Exemplo n.º 6
0
 private WorkThread(Builder builder)
 {
     _taskQueueController = builder.TaskQueueController;
     _thread = new Thread(DoWork)
     {
         Name         = builder.Name,
         IsBackground = true,
     };
 }