/third_party/rust/crates/tracing/tracing-subscriber/tests/ |
D | reload.rs | 2 use std::sync::atomic::{AtomicUsize, Ordering}; 37 static FILTER1_CALLS: AtomicUsize = AtomicUsize::new(0); in reload_handle() 38 static FILTER2_CALLS: AtomicUsize = AtomicUsize::new(0); in reload_handle() 105 static FILTER1_CALLS: AtomicUsize = AtomicUsize::new(0); in reload_filter() 106 static FILTER2_CALLS: AtomicUsize = AtomicUsize::new(0); in reload_filter()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/param/ |
D | auxv.rs | 23 use core::sync::atomic::{AtomicPtr, AtomicUsize}; 124 static PAGE_SIZE: AtomicUsize = AtomicUsize::new(0); 125 static CLOCK_TICKS_PER_SECOND: AtomicUsize = AtomicUsize::new(0); 126 static HWCAP: AtomicUsize = AtomicUsize::new(0); 127 static HWCAP2: AtomicUsize = AtomicUsize::new(0); 130 static PHNUM: AtomicUsize = AtomicUsize::new(0);
|
/third_party/rust/crates/signal-hook/signal-hook-registry/src/ |
D | half_lock.rs | 38 use std::sync::atomic::{self, AtomicPtr, AtomicUsize, Ordering}; 49 lock: &'a AtomicUsize, 104 generation: AtomicUsize, 106 lock: [AtomicUsize; 2], 119 generation: AtomicUsize::new(0), in new() 120 lock: [AtomicUsize::new(0), AtomicUsize::new(0)], in new()
|
/third_party/rust/crates/tracing/examples/examples/ |
D | counters.rs | 14 atomic::{AtomicUsize, Ordering}, 20 struct Counters(Arc<RwLock<HashMap<String, AtomicUsize>>>); 23 ids: AtomicUsize, 28 counters: RwLockReadGuard<'a, HashMap<String, AtomicUsize>>, 72 .or_insert_with(|| AtomicUsize::new(0)); in register_callsite() 115 ids: AtomicUsize::new(1), in new()
|
D | serde-yak-shave.rs | 1 use std::sync::atomic::{AtomicUsize, Ordering}; 18 next_id: AtomicUsize, // you need to assign span IDs, so you need a counter 85 next_id: AtomicUsize::new(1), in main()
|
/third_party/rust/crates/once_cell/tests/ |
D | it.rs | 4 sync::atomic::{AtomicUsize, Ordering::SeqCst}, 38 static DROP_CNT: AtomicUsize = AtomicUsize::new(0); in once_cell_drop() 177 static CALLED: AtomicUsize = AtomicUsize::new(0); in lazy_default() 254 use std::sync::atomic::{AtomicUsize, Ordering::SeqCst}; 307 static DROP_CNT: AtomicUsize = AtomicUsize::new(0); in once_cell_drop() 484 let called = AtomicUsize::new(0); in lazy_new() 508 let called = AtomicUsize::new(0); in lazy_deref_mut() 527 static CALLED: AtomicUsize = AtomicUsize::new(0); in lazy_default() 699 sync::atomic::{AtomicUsize, Ordering::SeqCst}, 708 let cnt = AtomicUsize::new(0); in once_non_zero_usize_smoke_test() [all …]
|
/third_party/rust/crates/tracing/tracing/benches/ |
D | baseline.rs | 4 use std::sync::atomic::{AtomicUsize, Ordering}; in bench() 8 let foo = AtomicUsize::new(1); in bench() 12 let foo = AtomicUsize::new(1); in bench()
|
/third_party/rust/crates/regex/src/ |
D | pool.rs | 61 use std::sync::atomic::{AtomicUsize, Ordering}; 65 static COUNTER: AtomicUsize = AtomicUsize::new(1); 118 owner: AtomicUsize, 183 let owner = AtomicUsize::new(0); in new()
|
/third_party/rust/crates/once_cell/examples/ |
D | bench_acquire.rs | 6 use std::sync::atomic::{AtomicUsize, Ordering}; 12 static OTHER: AtomicUsize = AtomicUsize::new(0);
|
/third_party/rust/crates/tracing/tracing-core/src/spin/ |
D | once.rs | 4 use core::sync::atomic::{AtomicUsize, Ordering}; 11 state: AtomicUsize, 43 state: AtomicUsize::new(INCOMPLETE), 148 state: &'a AtomicUsize,
|
/third_party/rust/crates/proc-macro2/src/ |
D | detection.rs | 1 use core::sync::atomic::{AtomicUsize, Ordering}; 4 static WORKS: AtomicUsize = AtomicUsize::new(0);
|
/third_party/rust/crates/tracing/tracing/tests/ |
D | filters_are_not_reevaluated_for_the_same_span.rs | 13 atomic::{AtomicUsize, Ordering}, 22 let alice_count = Arc::new(AtomicUsize::new(0)); in filters_are_not_reevaluated_for_the_same_span() 23 let bob_count = Arc::new(AtomicUsize::new(0)); in filters_are_not_reevaluated_for_the_same_span()
|
D | filters_are_reevaluated_for_different_call_sites.rs | 13 atomic::{AtomicUsize, Ordering}, 22 let charlie_count = Arc::new(AtomicUsize::new(0)); in filters_are_reevaluated_for_different_call_sites() 23 let dave_count = Arc::new(AtomicUsize::new(0)); in filters_are_reevaluated_for_different_call_sites()
|
D | filter_caching_is_lexically_scoped.rs | 14 atomic::{AtomicUsize, Ordering}, 29 let count = Arc::new(AtomicUsize::new(0)); in filter_caching_is_lexically_scoped()
|
/third_party/rust/crates/syn/tests/ |
D | test_round_trip.rs | 33 use std::sync::atomic::{AtomicUsize, Ordering}; 54 let failed = AtomicUsize::new(0); in test_round_trip() 76 fn test(path: &Path, failed: &AtomicUsize, abort_after: usize) { in test() argument 155 static COUNTER: AtomicUsize = AtomicUsize::new(0); in librustc_parse()
|
/third_party/rust/crates/tracing/tracing-core/src/ |
D | dispatcher.rs | 136 atomic::{AtomicBool, AtomicUsize, Ordering}, 198 static GLOBAL_INIT: AtomicUsize = AtomicUsize::new(UNINITIALIZED); 849 use crate::stdlib::sync::atomic::{AtomicUsize, Ordering}; 906 static EVENTS: AtomicUsize = AtomicUsize::new(0); in events_dont_infinite_loop() 947 static NEW_SPANS: AtomicUsize = AtomicUsize::new(0); in spans_dont_infinite_loop()
|
/third_party/rust/crates/syn/tests/crates/ |
D | main.rs | 22 use std::sync::atomic::{AtomicUsize, Ordering}; 45 let oversize_count = AtomicUsize::new(0); in main() 60 fn parse(path: &Path, oversize_count: &AtomicUsize) -> Result<()> { in parse()
|
/third_party/rust/crates/signal-hook/signal-hook-registry/tests/ |
D | unregister_signal.rs | 12 use std::sync::atomic::{AtomicUsize, Ordering}; 20 let called = Arc::new(AtomicUsize::new(0)); in register_unregister()
|
/third_party/rust/crates/log/src/ |
D | lib.rs | 349 use std::sync::atomic::{AtomicUsize, Ordering}; 357 struct AtomicUsize { struct 362 impl AtomicUsize { impl 363 const fn new(v: usize) -> AtomicUsize { in new() argument 364 AtomicUsize { v: Cell::new(v) } in new() 394 unsafe impl Sync for AtomicUsize {} implementation 400 static STATE: AtomicUsize = AtomicUsize::new(0); 409 static MAX_LOG_LEVEL_FILTER: AtomicUsize = AtomicUsize::new(0);
|
/third_party/rust/crates/signal-hook/src/ |
D | flag.rs | 141 use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; 162 pub fn register_usize(signal: c_int, flag: Arc<AtomicUsize>, value: usize) -> Result<SigId, Error> { in register_usize() argument
|
/third_party/rust/crates/tracing/tracing-log/benches/ |
D | logging.rs | 3 use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; 15 let started_count = Arc::new(AtomicUsize::new(0)); in run_on_many_threads()
|
/third_party/rust/crates/tracing/examples/examples/sloggish/ |
D | sloggish_subscriber.rs | 25 atomic::{AtomicUsize, Ordering}, 74 ids: AtomicUsize, 157 ids: AtomicUsize::new(1), in new()
|
/third_party/rust/crates/once_cell/src/ |
D | race.rs | 27 use atomic::{AtomicUsize, Ordering}; 35 inner: AtomicUsize, 42 OnceNonZeroUsize { inner: AtomicUsize::new(0) } in new()
|
/third_party/rust/crates/tracing/tracing-appender/src/ |
D | non_blocking.rs | 54 use std::sync::atomic::AtomicUsize; 139 pub struct ErrorCounter(Arc<AtomicUsize>); 169 error_counter: ErrorCounter(Arc::new(AtomicUsize::new(0))), in create()
|
/third_party/rust/crates/lazycell/src/ |
D | lib.rs | 54 use std::sync::atomic::{AtomicUsize, Ordering}; 238 state: AtomicUsize, 245 state: AtomicUsize::new(NONE), 339 state: AtomicUsize::new(SOME), in clone()
|