ThreadPool refactoring (#299)

This commit is contained in:
Carl Lerche
2018-04-04 13:30:54 -07:00
committed by GitHub
parent c715739599
commit 0bcf9b0ae6
14 changed files with 522 additions and 373 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ use callback::Callback;
use config::{Config, MAX_WORKERS};
use park::{BoxPark, BoxedPark, DefaultPark};
use sender::Sender;
use pool::Inner;
use pool::Pool;
use thread_pool::ThreadPool;
use worker::{self, Worker, WorkerId};
@@ -329,7 +329,7 @@ impl Builder {
// Create the pool
let inner = Arc::new(
Inner::new(
Pool::new(
workers.into_boxed_slice(),
self.config.clone()));