Debian Codegraph @

src/wakers.rs

raw symbols SCIP
1 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::{
2 taskrust-analyzer cargo std https://github.com/rust-lang/rust/library/std task/::Wakerrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Waker#,
3 threadrust-analyzer cargo std https://github.com/rust-lang/rust/library/std thread/::{selfrust-analyzer cargo std https://github.com/rust-lang/rust/library/std thread/, Threadrust-analyzer cargo std https://github.com/rust-lang/rust/library/std thread/thread/Thread#},
4 };
5
6 use once_cellrust-analyzer cargo once_cell 1.21.4 crate/::syncrust-analyzer cargo once_cell 1.21.4 sync/::Lazyrust-analyzer cargo once_cell 1.21.4 sync/Lazy#;
7
8 /// Creates a dummy waker that does nothing.
9 pub(craterust-analyzer cargo threadfin 0.1.2 crate/) fn empty_wakerrust-analyzer cargo threadfin 0.1.2 wakers/empty_waker().() -> Wakerrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Waker# {
10 static WAKERrust-analyzer cargo threadfin 0.1.2 wakers/WAKER.: Lazyrust-analyzer cargo once_cell 1.21.4 sync/Lazy#<Wakerrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Waker#> = Lazyrust-analyzer cargo once_cell 1.21.4 sync/Lazy#::newrust-analyzer cargo once_cell 1.21.4 sync/impl#[`Lazy<T, F>`]new().(|| waker_fnrust-analyzer cargo waker-fn 1.2.0 crate/::waker_fnrust-analyzer cargo waker-fn 1.2.0 waker_fn().(move || {}));
11
12 WAKERrust-analyzer cargo threadfin 0.1.2 wakers/WAKER..clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/impl#[Waker][Clone]clone().()
13 }
14
15 /// Creates a waker that unparks the current thread.
16 pub(craterust-analyzer cargo threadfin 0.1.2 crate/) fn current_thread_wakerrust-analyzer cargo threadfin 0.1.2 wakers/current_thread_waker().() -> Wakerrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Waker# {
17 thread_wakerrust-analyzer cargo threadfin 0.1.2 wakers/thread_waker().(threadrust-analyzer cargo std https://github.com/rust-lang/rust/library/std thread/::currentrust-analyzer cargo std https://github.com/rust-lang/rust/library/std thread/current/current().())
18 }
19
20 /// Creates a waker that unparks a thread.
21 pub(craterust-analyzer cargo threadfin 0.1.2 crate/) fn thread_wakerrust-analyzer cargo threadfin 0.1.2 wakers/thread_waker().(thread: Threadrust-analyzer cargo std https://github.com/rust-lang/rust/library/std thread/thread/Thread#) -> Wakerrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Waker# {
22 waker_fnrust-analyzer cargo waker-fn 1.2.0 crate/::waker_fnrust-analyzer cargo waker-fn 1.2.0 waker_fn().(move || thread.unparkrust-analyzer cargo std https://github.com/rust-lang/rust/library/std thread/thread/impl#[Thread]unpark().())
23 }