mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-30 00:00:16 +02:00
* Builder -> src/builder.rs * Callback -> src/callback.rs * Config -> src/config.rs * Futures2Wake -> src/futures2_wake.rs * Inner -> src/inner.rs * Notifier-> src/notifier.rs * Sender -> src/sender.rs * Shutdown -> src/shutdown.rs * ShutdownTask -> src/shutdown_task.rs * SleepStack -> src/sleep_stack.rs * State -> src/state.rs * ThreadPool -> src/thread_pool.rs * Worker -> src/worker.rs * WorkerEntry -> src/worker_entry.rs * WorkerState -> src/worker_state.rs
41 lines
823 B
Rust
41 lines
823 B
Rust
//! A work-stealing based thread pool for executing futures.
|
|
|
|
#![doc(html_root_url = "https://docs.rs/tokio-threadpool/0.1.1")]
|
|
#![deny(warnings, missing_docs, missing_debug_implementations)]
|
|
|
|
extern crate tokio_executor;
|
|
extern crate futures;
|
|
extern crate crossbeam_deque as deque;
|
|
extern crate num_cpus;
|
|
extern crate rand;
|
|
|
|
#[macro_use]
|
|
extern crate log;
|
|
|
|
#[cfg(feature = "unstable-futures")]
|
|
extern crate futures2;
|
|
|
|
mod builder;
|
|
mod callback;
|
|
mod config;
|
|
mod inner;
|
|
#[cfg(feature = "unstable-futures")]
|
|
mod futures2_wake;
|
|
mod notifier;
|
|
mod sender;
|
|
mod shutdown;
|
|
mod shutdown_task;
|
|
mod sleep_stack;
|
|
mod state;
|
|
mod task;
|
|
mod thread_pool;
|
|
mod worker;
|
|
mod worker_entry;
|
|
mod worker_state;
|
|
|
|
pub use builder::Builder;
|
|
pub use sender::Sender;
|
|
pub use shutdown::Shutdown;
|
|
pub use thread_pool::ThreadPool;
|
|
pub use worker::Worker;
|