2018-02-21 07:42:22 -08:00
|
|
|
//! A work-stealing based thread pool for executing futures.
|
|
|
|
|
|
2018-03-30 15:28:44 -07:00
|
|
|
#![doc(html_root_url = "https://docs.rs/tokio-threadpool/0.1.2")]
|
2018-02-21 07:42:22 -08:00
|
|
|
#![deny(warnings, missing_docs, missing_debug_implementations)]
|
|
|
|
|
|
|
|
|
|
extern crate tokio_executor;
|
|
|
|
|
extern crate futures;
|
2018-03-07 02:49:01 +09:00
|
|
|
extern crate crossbeam_deque as deque;
|
2018-02-21 07:42:22 -08:00
|
|
|
extern crate num_cpus;
|
|
|
|
|
extern crate rand;
|
|
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
|
extern crate log;
|
|
|
|
|
|
2018-03-13 13:57:35 -07:00
|
|
|
#[cfg(feature = "unstable-futures")]
|
|
|
|
|
extern crate futures2;
|
|
|
|
|
|
2018-03-29 13:47:08 -07:00
|
|
|
pub mod park;
|
|
|
|
|
|
2018-03-28 01:56:21 +03:00
|
|
|
mod builder;
|
|
|
|
|
mod callback;
|
|
|
|
|
mod config;
|
|
|
|
|
#[cfg(feature = "unstable-futures")]
|
|
|
|
|
mod futures2_wake;
|
|
|
|
|
mod notifier;
|
2018-04-03 22:35:59 -07:00
|
|
|
mod pool;
|
2018-03-28 01:56:21 +03:00
|
|
|
mod sender;
|
|
|
|
|
mod shutdown;
|
|
|
|
|
mod shutdown_task;
|
2018-02-21 07:42:22 -08:00
|
|
|
mod task;
|
2018-03-28 01:56:21 +03:00
|
|
|
mod thread_pool;
|
|
|
|
|
mod worker;
|
|
|
|
|
|
|
|
|
|
pub use builder::Builder;
|
|
|
|
|
pub use sender::Sender;
|
|
|
|
|
pub use shutdown::Shutdown;
|
|
|
|
|
pub use thread_pool::ThreadPool;
|
|
|
|
|
pub use worker::Worker;
|