-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
mod.rs
83 lines (67 loc) · 1.79 KB
/
mod.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
cfg_io_driver! {
pub(crate) mod bit;
pub(crate) mod slab;
}
#[cfg(feature = "rt")]
pub(crate) mod atomic_cell;
#[cfg(any(
// io driver uses `WakeList` directly
feature = "net",
feature = "process",
// `sync` enables `Notify` and `batch_semaphore`, which require `WakeList`.
feature = "sync",
// `fs` uses `batch_semaphore`, which requires `WakeList`.
feature = "fs",
// rt and signal use `Notify`, which requires `WakeList`.
feature = "rt",
feature = "signal",
))]
mod wake_list;
#[cfg(any(
feature = "net",
feature = "process",
feature = "sync",
feature = "fs",
feature = "rt",
feature = "signal",
))]
pub(crate) use wake_list::WakeList;
#[cfg(any(
feature = "fs",
feature = "net",
feature = "process",
feature = "rt",
feature = "sync",
feature = "signal",
feature = "time",
))]
pub(crate) mod linked_list;
#[cfg(any(feature = "rt", feature = "macros"))]
mod rand;
cfg_rt! {
mod idle_notified_set;
pub(crate) use idle_notified_set::IdleNotifiedSet;
pub(crate) use self::rand::{RngSeedGenerator,replace_thread_rng};
mod wake;
pub(crate) use wake::WakerRef;
pub(crate) use wake::{waker_ref, Wake};
mod sync_wrapper;
pub(crate) use sync_wrapper::SyncWrapper;
mod vec_deque_cell;
pub(crate) use vec_deque_cell::VecDequeCell;
mod rc_cell;
pub(crate) use rc_cell::RcCell;
}
#[cfg_attr(not(tokio_unstable), allow(unreachable_pub))]
#[cfg(feature = "rt")]
pub use self::rand::RngSeed;
#[cfg(any(feature = "macros"))]
#[cfg_attr(not(feature = "macros"), allow(unreachable_pub))]
pub use self::rand::thread_rng_n;
cfg_rt_multi_thread! {
pub(crate) use self::rand::FastRand;
mod try_lock;
pub(crate) use try_lock::TryLock;
}
pub(crate) mod trace;
pub(crate) mod error;