Home
last modified time | relevance | path

Searched refs:ON_RT_THREAD (Results 1 – 1 of 1) sorted by relevance

/external/rust/crates/tokio/tests/
Dtask_local_set.rs31 static ON_RT_THREAD: Cell<bool> = Cell::new(false); in local_threadpool() constant
34 ON_RT_THREAD.with(|cell| cell.set(true)); in local_threadpool()
38 assert!(ON_RT_THREAD.with(|cell| cell.get())); in local_threadpool()
40 assert!(ON_RT_THREAD.with(|cell| cell.get())); in local_threadpool()
112 static ON_RT_THREAD: Cell<bool> = Cell::new(false); in local_threadpool_timer() constant
115 ON_RT_THREAD.with(|cell| cell.set(true)); in local_threadpool_timer()
119 assert!(ON_RT_THREAD.with(|cell| cell.get())); in local_threadpool_timer()
121 assert!(ON_RT_THREAD.with(|cell| cell.get())); in local_threadpool_timer()
123 assert!(ON_RT_THREAD.with(|cell| cell.get())); in local_threadpool_timer()
136 static ON_RT_THREAD: Cell<bool> = Cell::new(false); in local_threadpool_blocking_in_place() constant
[all …]