Home
last modified time | relevance | path

Searched refs:loom (Results 1 – 25 of 109) sorted by relevance

12345

/external/rust/crates/tokio/src/loom/std/
Dmod.rs1 #![cfg_attr(any(not(feature = "full"), loom), allow(unused_imports, dead_code))]
58 pub(crate) use crate::loom::std::parking_lot::{
67 pub(crate) use crate::loom::std::mutex::Mutex;
70 pub(crate) use crate::loom::std::atomic_ptr::AtomicPtr;
71 pub(crate) use crate::loom::std::atomic_u16::AtomicU16;
72 pub(crate) use crate::loom::std::atomic_u32::AtomicU32;
73 pub(crate) use crate::loom::std::atomic_u64::AtomicU64;
74 pub(crate) use crate::loom::std::atomic_u8::AtomicU8;
75 pub(crate) use crate::loom::std::atomic_usize::AtomicUsize;
/external/rust/crates/tokio/src/sync/tests/
Dloom_mpsc.rs4 use loom::future::block_on;
5 use loom::sync::Arc;
6 use loom::thread;
11 loom::model(|| { in closing_tx()
29 loom::model(|| { in closing_unbounded_tx()
47 loom::model(|| { in closing_bounded_rx()
61 loom::model(|| { in closing_and_sending()
88 loom::model(|| { in closing_unbounded_rx()
102 loom::model(|| { in dropping_tx()
120 loom::model(|| { in dropping_unbounded_tx()
Dloom_notify.rs3 use loom::future::block_on;
4 use loom::sync::Arc;
5 use loom::thread;
9 loom::model(|| { in notify_one()
26 loom::model(|| { in notify_waiters()
47 loom::model(|| { in notify_multi()
81 loom::model(|| { in notify_drop()
Dloom_semaphore_batch.rs4 use loom::future::block_on;
5 use loom::sync::atomic::AtomicUsize;
6 use loom::thread;
33 loom::model(|| { in basic_usage()
53 loom::model(|| { in release()
74 loom::model(|| { in basic_closing()
99 loom::model(|| { in concurrent_close()
138 loom::model(|| { in concurrent_cancel()
162 let mut b = loom::model::Builder::new(); in batch()
202 loom::model(|| { in release_during_acquire()
Dloom_broadcast.rs4 use loom::future::block_on;
5 use loom::sync::Arc;
6 use loom::thread;
11 loom::model(|| { in broadcast_send()
52 loom::model(|| { in broadcast_two()
97 loom::model(|| { in broadcast_wrap()
146 loom::model(|| { in drop_rx()
184 loom::model(move || { in drop_multiple_rx_with_overflow()
Dloom_atomic_waker.rs4 use loom::future::block_on;
5 use loom::sync::atomic::AtomicUsize;
6 use loom::thread;
20 loom::model(|| { in basic_notification()
Dloom_rwlock.rs3 use loom::future::block_on;
4 use loom::thread;
9 let b = loom::model::Builder::new(); in concurrent_write()
40 let b = loom::model::Builder::new(); in concurrent_read_write()
87 loom::model(|| { in downgrade()
Dloom_oneshot.rs4 use loom::future::block_on;
5 use loom::thread;
10 loom::model(|| { in smoke()
24 loom::model(|| { in changing_rx_task()
87 loom::model(|| { in changing_tx_task()
Dloom_watch.rs3 use loom::future::block_on;
4 use loom::thread;
8 loom::model(|| { in smoke()
/external/rust/crates/tokio/src/loom/
Dmocked.rs1 pub(crate) use loom::*;
5 pub(crate) use loom::sync::MutexGuard;
8 pub(crate) struct Mutex<T>(loom::sync::Mutex<T>);
14 Mutex(loom::sync::Mutex::new(t)) in new()
27 pub(crate) use loom::sync::*;
Dmod.rs6 #[cfg(not(all(test, loom)))]
8 #[cfg(not(all(test, loom)))]
11 #[cfg(all(test, loom))]
13 #[cfg(all(test, loom))]
/external/rust/crates/tokio/src/runtime/tests/
Dloom_pool.rs13 use loom::sync::atomic::{AtomicBool, AtomicUsize};
14 use loom::sync::{Arc, Mutex};
28 loom::model(|| { in racy_shutdown()
50 loom::model(|| { in pool_multi_spawn()
82 loom::model(move || { in only_blocking_inner()
116 loom::model(move || { in blocking_and_regular_inner()
163 loom::model(|| { in pool_shutdown()
180 loom::model(|| { in join_output()
194 loom::model(|| { in poll_drop_handle_then_drop()
211 loom::model(|| { in complete_block_on_under_load()
[all …]
Dloom_basic_scheduler.rs1 use crate::loom::sync::atomic::AtomicUsize;
2 use crate::loom::sync::Arc;
3 use crate::loom::thread;
36 loom::model(|| { in block_on_num_polls()
Dloom_queue.rs4 use loom::thread;
8 loom::model(|| { in basic()
62 loom::model(|| { in steal_overflow()
130 loom::model(|| { in multi_stealer()
166 loom::model(|| { in chained_steal()
/external/rust/crates/crossbeam-epoch/src/
Dlib.rs69 extern crate loom_crate as loom;
77 pub(crate) use loom::cell::UnsafeCell;
82 pub(crate) use loom::sync::atomic::AtomicUsize;
93 loom::sync::atomic::fence(Ordering::Acquire) in fence()
103 pub(crate) use loom::sync::Arc;
105 pub(crate) use loom::lazy_static;
106 pub(crate) use loom::thread_local;
/external/rust/crates/tokio/src/time/driver/tests/
Dmod.rs3 #[cfg(not(loom))]
6 use crate::loom::sync::Arc;
7 use crate::loom::thread;
9 loom::sync::atomic::{AtomicBool, Ordering},
26 #[cfg(loom)] in block_on()
27 return loom::future::block_on(f); in block_on()
29 #[cfg(not(loom))] in block_on()
34 #[cfg(loom)] in model()
35 loom::model(f); in model()
37 #[cfg(not(loom))] in model()
[all …]
/external/rust/crates/crossbeam-epoch/tests/
Dloom.rs4 use loom_crate as loom;
8 use loom::sync::atomic::Ordering::{self, Acquire, Relaxed, Release};
9 use loom::sync::Arc;
10 use loom::thread::spawn;
16 loom::model(|| { in it_works()
23 let jh = loom::thread::spawn(move || { in it_works()
136 loom::model(|| { in treiber_stack()
/external/rust/crates/crossbeam-epoch/
DCargo.toml.orig35 # Enable the use of loom for concurrency testing.
39 loom = ["loom-crate", "crossbeam-utils/loom"]
46 # Enable the use of loom for concurrency testing.
51 loom-crate = { package = "loom", version = "0.4", optional = true }
DCargo.toml52 loom = ["loom-crate", "crossbeam-utils/loom"] qkey
55 [target."cfg(crossbeam_loom)".dependencies.loom-crate]
58 package = "loom"
/external/rust/crates/tokio/src/macros/
Dcfg.rs42 #[cfg(not(loom))]
145 $( #[cfg(loom)] $item )*
151 $( #[cfg(not(loom))] $item )*
191 #[cfg(not(loom))]
200 #[cfg(not(loom))]
208 #[cfg(not(all(unix, not(loom), feature = "process")))]
219 #[cfg(not(loom))]
229 #[cfg(not(loom))]
238 … #[cfg(any(loom, not(unix), not(any(feature = "signal", all(unix, feature = "process")))))]
Dthread_local.rs1 #[cfg(all(loom, test))]
3 ($($tts:tt)+) => { loom::thread_local!{ $($tts)+ } }
/external/rust/crates/tokio/src/sync/mpsc/
Dmod.rs91 #[cfg(all(target_pointer_width = "64", not(loom)))]
94 #[cfg(all(not(target_pointer_width = "64"), not(loom)))]
97 #[cfg(loom)]
/external/rust/crates/crossbeam-utils/src/
Dlib.rs48 pub(crate) use loom::sync::atomic::spin_loop_hint;
49 pub(crate) use loom::sync::atomic::{
58 pub(crate) use loom::sync::atomic::fence as compiler_fence;
60 pub(crate) use loom::sync::{Arc, Condvar, Mutex};
/external/rust/crates/bytes/src/
Dloom.rs1 #[cfg(not(all(test, loom)))]
23 #[cfg(all(test, loom))]
26 pub(crate) use loom::sync::atomic::{fence, AtomicPtr, AtomicUsize, Ordering};
/external/rust/crates/tokio/src/sync/
Dwatch.rs58 use crate::loom::sync::atomic::AtomicUsize;
59 use crate::loom::sync::atomic::Ordering::{Relaxed, SeqCst};
60 use crate::loom::sync::{Arc, RwLock, RwLockReadGuard};
439 #[cfg(all(test, loom))]
442 use loom::thread;
447 loom::model(|| { in watch_spurious_wakeup()
481 loom::model(|| { in watch_borrow()

12345