Make Handle Send + Sync. (#35)

* Make Handle `Send + Sync`.

This is an initial implementation making `Handle: Send + Sync`. It uses
a `RwLock` to coordinate access to the underlying state storage. An
implementation without the lock is left to later.

This pass also leaves a lot of dead code that can be removed in later
commits.

* Remove reactor code related to message passing

The previous commit removed the need for using message passing to
communicate with the reactor. This commit removes all the unnecessary
code.
This commit is contained in:
Carl Lerche
2017-11-17 12:51:23 -08:00
committed by Aaron Turon
parent 9c16d47632
commit 4c268a8939
5 changed files with 163 additions and 279 deletions
+1 -3
View File
@@ -86,6 +86,7 @@
#![doc(html_root_url = "https://docs.rs/tokio-core/0.1")]
#![deny(missing_docs)]
#![deny(warnings)]
#![allow(unused_macros)]
extern crate bytes;
#[macro_use]
@@ -96,9 +97,6 @@ extern crate slab;
#[macro_use]
extern crate tokio_io;
#[macro_use]
extern crate scoped_tls;
#[macro_use]
extern crate log;