Home
last modified time | relevance | path

Searched refs:AtomicUsize (Results 1 – 25 of 42) sorted by relevance

12

/third_party/rust/crates/tracing/tracing-subscriber/tests/
Dreload.rs2 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/
Dauxv.rs23 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/
Dhalf_lock.rs38 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/
Dcounters.rs14 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()
Dserde-yak-shave.rs1 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/
Dit.rs4 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/
Dbaseline.rs4 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/
Dpool.rs61 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/
Dbench_acquire.rs6 use std::sync::atomic::{AtomicUsize, Ordering};
12 static OTHER: AtomicUsize = AtomicUsize::new(0);
/third_party/rust/crates/tracing/tracing-core/src/spin/
Donce.rs4 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/
Ddetection.rs1 use core::sync::atomic::{AtomicUsize, Ordering};
4 static WORKS: AtomicUsize = AtomicUsize::new(0);
/third_party/rust/crates/tracing/tracing/tests/
Dfilters_are_not_reevaluated_for_the_same_span.rs13 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()
Dfilters_are_reevaluated_for_different_call_sites.rs13 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()
Dfilter_caching_is_lexically_scoped.rs14 atomic::{AtomicUsize, Ordering},
29 let count = Arc::new(AtomicUsize::new(0)); in filter_caching_is_lexically_scoped()
/third_party/rust/crates/syn/tests/
Dtest_round_trip.rs33 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/
Ddispatcher.rs136 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/
Dmain.rs22 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/
Dunregister_signal.rs12 use std::sync::atomic::{AtomicUsize, Ordering};
20 let called = Arc::new(AtomicUsize::new(0)); in register_unregister()
/third_party/rust/crates/log/src/
Dlib.rs349 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/
Dflag.rs141 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/
Dlogging.rs3 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/
Dsloggish_subscriber.rs25 atomic::{AtomicUsize, Ordering},
74 ids: AtomicUsize,
157 ids: AtomicUsize::new(1), in new()
/third_party/rust/crates/once_cell/src/
Drace.rs27 use atomic::{AtomicUsize, Ordering};
35 inner: AtomicUsize,
42 OnceNonZeroUsize { inner: AtomicUsize::new(0) } in new()
/third_party/rust/crates/tracing/tracing-appender/src/
Dnon_blocking.rs54 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/
Dlib.rs54 use std::sync::atomic::{AtomicUsize, Ordering};
238 state: AtomicUsize,
245 state: AtomicUsize::new(NONE),
339 state: AtomicUsize::new(SOME), in clone()

12