Refactor threadpool task types (#300)

Replaces homegrown Arc with std Arc

Is this safer? Unknown. At least we don't have to maintain an arc
implementation anymore. This will also make it easier to filter out tsan
false positives.

Also split task/mod.rs into multiple files.
This commit is contained in:
Carl Lerche
2018-04-05 10:57:05 -07:00
committed by GitHub
parent 0bcf9b0ae6
commit 3be6b69e1b
9 changed files with 479 additions and 546 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ impl<'a> tokio_executor::Executor for &'a Sender {
// execution.
// Create a new task for the future
let task = Task::new(future);
let task = Arc::new(Task::new(future));
self.inner.submit(task, &self.inner);