Home
last modified time | relevance | path

Searched refs:compare_exchange (Results 1 – 25 of 66) sorted by relevance

123

/external/rust/crates/futures-executor/src/
Dunpark_mutex.rs65 match self.status.compare_exchange(WAITING, POLLING, in notify()
86 match self.status.compare_exchange(POLLING, REPOLL, in notify()
120 match self.status.compare_exchange(POLLING, WAITING, SeqCst, SeqCst) { in wait()
/external/rust/crates/tokio/src/park/
Dthread.rs85 .compare_exchange(NOTIFIED, EMPTY, SeqCst, SeqCst) in park()
94 match self.state.compare_exchange(EMPTY, PARKED, SeqCst, SeqCst) { in park()
116 .compare_exchange(NOTIFIED, EMPTY, SeqCst, SeqCst) in park()
132 .compare_exchange(NOTIFIED, EMPTY, SeqCst, SeqCst) in park_timeout()
144 match self.state.compare_exchange(EMPTY, PARKED, SeqCst, SeqCst) { in park_timeout()
/external/rust/crates/tokio/src/runtime/
Dpark.rs127 .compare_exchange(NOTIFIED, EMPTY, SeqCst, SeqCst) in park()
149 .compare_exchange(EMPTY, PARKED_CONDVAR, SeqCst, SeqCst) in park_condvar()
172 .compare_exchange(NOTIFIED, EMPTY, SeqCst, SeqCst) in park_condvar()
186 .compare_exchange(EMPTY, PARKED_DRIVER, SeqCst, SeqCst) in park_driver()
Dqueue.rs200 .compare_exchange( in push_overflow()
283 .compare_exchange(head, next, AcqRel, Acquire); in pop()
383 .compare_exchange(prev_packed, next_packed, AcqRel, Acquire); in steal_into2()
429 .compare_exchange(prev_packed, next_packed, AcqRel, Acquire); in steal_into2()
/external/rust/crates/crossbeam-epoch/src/sync/
Dqueue.rs79 .compare_exchange(onto, next, Release, Relaxed, guard); in push_internal()
85 .compare_exchange(Shared::null(), new, Release, Relaxed, guard) in push_internal()
91 .compare_exchange(onto, new, Release, Relaxed, guard); in push_internal()
125 .compare_exchange(head, next, Release, Relaxed, guard) in pop_internal()
132 .compare_exchange(tail, next, Release, Relaxed, guard); in pop_internal()
158 .compare_exchange(head, next, Release, Relaxed, guard) in pop_if_internal()
165 .compare_exchange(tail, next, Release, Relaxed, guard); in pop_if_internal()
/external/rust/crates/crossbeam-utils/tests/
Datomic_cell.rs183 assert_eq!(a.compare_exchange(Foo(0), Foo(5)), Ok(Foo(100))); in modular_u8()
185 assert_eq!(a.compare_exchange(Foo(10), Foo(15)), Ok(Foo(100))); in modular_u8()
207 assert_eq!(a.compare_exchange(Foo(0), Foo(5)), Ok(Foo(100))); in modular_usize()
209 assert_eq!(a.compare_exchange(Foo(10), Foo(15)), Ok(Foo(100))); in modular_usize()
226 assert!(cell.compare_exchange(prev, next).is_ok()); in garbage_padding()
/external/rust/crates/once_cell/src/
Drace.rs41 self.inner.compare_exchange(0, value.get(), Ordering::AcqRel, Ordering::Acquire); in set()
82 self.inner.compare_exchange(0, val, Ordering::AcqRel, Ordering::Acquire); in get_or_try_init()
214 let exchange = self.inner.compare_exchange( in set()
260 let exchange = self.inner.compare_exchange( in get_or_try_init()
/external/rust/crates/crossbeam-utils/src/sync/
Dparker.rs319 .compare_exchange(NOTIFIED, EMPTY, SeqCst, SeqCst) in park()
335 match self.state.compare_exchange(EMPTY, PARKED, SeqCst, SeqCst) { in park()
374 .compare_exchange(NOTIFIED, EMPTY, SeqCst, SeqCst) in park()
/external/rust/crates/rayon-core/src/
Dlatch.rs93 .compare_exchange(UNSET, SLEEPY, Ordering::SeqCst, Ordering::Relaxed) in get_sleepy()
103 .compare_exchange(SLEEPY, SLEEPING, Ordering::SeqCst, Ordering::Relaxed) in fall_asleep()
115 .compare_exchange(SLEEPING, UNSET, Ordering::SeqCst, Ordering::Relaxed); in wake_up()
/external/rust/crates/tokio/src/loom/std/
Datomic_u64.rs48 pub(crate) fn compare_exchange( in compare_exchange() method
72 self.compare_exchange(current, new, success, failure) in compare_exchange_weak()
/external/rust/crates/tokio/src/sync/
Dnotify.rs327 let res = self.state.compare_exchange(curr, new, SeqCst, SeqCst); in notify_one()
467 let res = state.compare_exchange(curr, set_state(curr, NOTIFIED), SeqCst, SeqCst); in notify_locked()
542 let res = notify.state.compare_exchange( in poll()
574 let res = notify.state.compare_exchange( in poll()
591 let res = notify.state.compare_exchange( in poll()
Dbatch_semaphore.rs225 match self.permits.compare_exchange(curr, next, AcqRel, Acquire) { in try_acquire()
343 match self.permits.compare_exchange(curr, next, AcqRel, Acquire) { in poll_acquire()
424 match self.state.compare_exchange(curr, next, AcqRel, Acquire) { in assign_permits()
/external/rust/crates/crossbeam-epoch/src/
Depoch.rs118 pub(crate) fn compare_exchange( in compare_exchange() method
127 .compare_exchange(current.data, new.data, success, failure) in compare_exchange()
/external/rust/crates/futures-core/src/task/__internal/
Datomic_waker.rs264 .compare_exchange(WAITING, REGISTERING, Acquire, Acquire) in register()
282 let res = self.state.compare_exchange( in register()
/external/rust/crates/tokio/src/sync/task/
Datomic_waker.rs176 .compare_exchange(WAITING, REGISTERING, Acquire, Acquire) in do_register()
193 .compare_exchange(REGISTERING, WAITING, AcqRel, Acquire); in do_register()
/external/rust/crates/crossbeam-channel/src/flavors/
Dtick.rs49 .compare_exchange(delivery_time, now + self.duration) in try_recv()
75 .compare_exchange(delivery_time, delivery_time.max(now) + self.duration) in recv()
/external/rust/crates/crossbeam-utils/benches/
Datomic_cell.rs35 let _ = a.compare_exchange(i, i.wrapping_add(1)); in compare_exchange_u8()
109 let _ = a.compare_exchange(i, i.wrapping_add(1)); in compare_exchange_usize()
/external/rust/crates/crossbeam-epoch/tests/
Dloom.rs87 .compare_exchange(head, n, Release, Relaxed, &guard) in treiber_stack()
109 .compare_exchange(head, next, Relaxed, Relaxed, &guard) in treiber_stack()
/external/rust/crates/grpcio/src/task/
Dexecutor.rs190 .compare_exchange(init_state, POLLING, Ordering::AcqRel, Ordering::Acquire) in poll()
212 match task.state.compare_exchange( in poll()
/external/rust/crates/parking_lot/src/
Draw_mutex.rs104 .compare_exchange(LOCKED_BIT, 0, Ordering::Release, Ordering::Relaxed) in unlock()
125 .compare_exchange(LOCKED_BIT, 0, Ordering::Release, Ordering::Relaxed) in unlock_fair()
/external/rust/crates/crossbeam-epoch/
DCHANGELOG.md7 - Add `Atomic::compare_exchange` and `Atomic::compare_exchange_weak`. (#628)
8 …::compare_and_set` and `Atomic::compare_and_set_weak`. Use `Atomic::compare_exchange` or `Atomic::…
/external/rust/crates/crossbeam-utils/
DCHANGELOG.md7 - Deprecate `AtomicCell::compare_and_swap`. Use `AtomicCell::compare_exchange` instead. (#619)
49 - Fix a bug in `AtomicCell::compare_exchange()` and `AtomicCell::compare_and_swap()`.
/external/rust/crates/tokio/src/sync/mpsc/
Dblock.rs268 .compare_exchange(ptr::null_mut(), block.as_ptr(), success, failure) in try_push()
313 .compare_exchange(ptr::null_mut(), new_block.as_ptr(), AcqRel, Acquire) in grow()
/external/llvm-project/libcxxabi/src/
Dcxa_guard_impl.h136 …bool compare_exchange(IntType *expected, IntType desired, MemoryOrder ord_success, MemoryOrder ord… in compare_exchange() function
442 if (init_byte.compare_exchange(&last_val, PENDING_BIT, std::_AO_Acq_Rel, in acquire_init_byte()
465 if (!init_byte.compare_exchange(&last_val, PENDING_BIT | WAITING_BIT, in acquire_init_byte()
/external/rust/crates/spin/src/
Drw_lock.rs266 if compare_exchange( in try_write_internal()
440 if compare_exchange( in try_upgrade_internal()
708 fn compare_exchange( in compare_exchange() function
717 atomic.compare_exchange(current, new, success, failure) in compare_exchange()

123