Home
last modified time | relevance | path

Searched refs:compare_exchange_weak (Results 1 – 25 of 126) sorted by relevance

123456

/external/libcxx/test/std/atomics/atomics.general/
Dreplace_failure_order.pass.cpp32 i.compare_exchange_weak(exp, 0, std::memory_order_acq_rel); in main()
33 i.compare_exchange_weak(exp, 0, std::memory_order_release); in main()
37 v.compare_exchange_weak(exp, 0, std::memory_order_acq_rel); in main()
38 v.compare_exchange_weak(exp, 0, std::memory_order_release); in main()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/atomics/atomics.general/
Dreplace_failure_order.pass.cpp31 (void) i.compare_exchange_weak(exp, 0, std::memory_order_acq_rel); in main()
32 (void) i.compare_exchange_weak(exp, 0, std::memory_order_release); in main()
36 (void) v.compare_exchange_weak(exp, 0, std::memory_order_acq_rel); in main()
37 (void) v.compare_exchange_weak(exp, 0, std::memory_order_release); in main()
/external/libcxx/test/libcxx/atomics/
Ddiagnose_invalid_memory_order.fail.cpp78 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_release); // expe… in main()
79 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // expe… in main()
80 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_release); // exp… in main()
81 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // exp… in main()
83 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_relaxed); in main()
84 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_consume); in main()
85 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acquire); in main()
86 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_seq_cst); in main()
89 x.compare_exchange_weak(val1, val2, std::memory_order_release); in main()
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/atomics/
Ddiagnose_invalid_memory_order.verify.cpp76 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_release); // expe… in f()
77 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // expe… in f()
78 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_release); // exp… in f()
79 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // exp… in f()
81 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_relaxed); in f()
82 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_consume); in f()
83 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acquire); in f()
84 x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_seq_cst); in f()
87 x.compare_exchange_weak(val1, val2, std::memory_order_release); in f()
/external/rust/crates/parking_lot/src/
Draw_rwlock.rs70 .compare_exchange_weak(0, WRITER_BIT, Ordering::Acquire, Ordering::Relaxed) in lock_exclusive()
239 .compare_exchange_weak(0, WRITER_BIT, Ordering::Acquire, Ordering::Relaxed) in try_lock_exclusive_for()
256 .compare_exchange_weak(0, WRITER_BIT, Ordering::Acquire, Ordering::Relaxed) in try_lock_exclusive_until()
352 .compare_exchange_weak( in unlock_upgradable()
382 .compare_exchange_weak( in try_upgrade()
405 .compare_exchange_weak( in unlock_upgradable_fair()
531 .compare_exchange_weak(state, new_state, Ordering::Acquire, Ordering::Relaxed) in try_lock_shared_fast()
554 match self.state.compare_exchange_weak( in try_lock_shared_slow()
581 .compare_exchange_weak(state, new_state, Ordering::Acquire, Ordering::Relaxed) in try_lock_upgradable_fast()
597 match self.state.compare_exchange_weak( in try_lock_upgradable_slow()
[all …]
Draw_mutex.rs69 .compare_exchange_weak(0, LOCKED_BIT, Ordering::Acquire, Ordering::Relaxed) in lock()
84 match self.state.compare_exchange_weak( in try_lock()
149 .compare_exchange_weak(0, LOCKED_BIT, Ordering::Acquire, Ordering::Relaxed) in try_lock_until()
166 .compare_exchange_weak(0, LOCKED_BIT, Ordering::Acquire, Ordering::Relaxed) in try_lock_for()
190 match self.state.compare_exchange_weak( in mark_parked_if_locked()
216 match self.state.compare_exchange_weak( in lock_slow()
236 if let Err(x) = self.state.compare_exchange_weak( in lock_slow()
/external/rust/crates/parking_lot_core/src/
Dword_lock.rs92 .compare_exchange_weak(0, LOCKED_BIT, Ordering::Acquire, Ordering::Relaxed) in lock()
117 match self.state.compare_exchange_weak( in lock_slow()
154 if let Err(x) = self.state.compare_exchange_weak( in lock_slow()
189 match self.state.compare_exchange_weak( in unlock_slow()
230 match self.state.compare_exchange_weak( in unlock_slow()
249 match self.state.compare_exchange_weak( in unlock_slow()
/external/rust/crates/async-task/src/
Draw.rs229 match (*raw.header).state.compare_exchange_weak( in wake()
244 match (*raw.header).state.compare_exchange_weak( in wake()
285 match (*raw.header).state.compare_exchange_weak( in wake_by_ref()
303 match (*raw.header).state.compare_exchange_weak( in wake_by_ref()
493 match (*raw.header).state.compare_exchange_weak( in run()
530 match (*raw.header).state.compare_exchange_weak( in run()
584 match (*raw.header).state.compare_exchange_weak( in run()
675 match (*raw.header).state.compare_exchange_weak( in run()
Dtask.rs202 match (*header).state.compare_exchange_weak( in set_canceled()
240 if let Err(mut state) = (*header).state.compare_exchange_weak( in set_detached()
251 match (*header).state.compare_exchange_weak( in set_detached()
278 match (*header).state.compare_exchange_weak( in set_detached()
Dheader.rs93 match self.state.compare_exchange_weak( in register()
134 .compare_exchange_weak(state, new, Ordering::AcqRel, Ordering::Acquire) in register()
/external/eigen/unsupported/Eigen/CXX11/src/ThreadPool/
DEventCount.h72 if (state_.compare_exchange_weak(state, newstate, in Prewait()
97 if (state_.compare_exchange_weak(state, newstate, in CommitWait()
122 if (state_.compare_exchange_weak(state, newstate, in CancelWait()
154 if (state_.compare_exchange_weak(state, newstate, in Notify()
/external/cronet/buildtools/third_party/libc++/trunk/test/std/atomics/atomics.types.generic/
Dgeneral.compile.pass.cpp86 TEST_IGNORE_NODISCARD a.compare_exchange_weak(v, v, m, m); in test()
88 TEST_IGNORE_NODISCARD a.compare_exchange_weak(v, v); in test()
Dpointer.compile.pass.cpp108 TEST_IGNORE_NODISCARD a.compare_exchange_weak(v, v, m, m); in test()
110 TEST_IGNORE_NODISCARD a.compare_exchange_weak(v, v); in test()
Dbool.pass.cpp80 assert(obj.compare_exchange_weak(x, true, in main()
131 assert(obj.compare_exchange_weak(x, true, in main()
182 assert(obj.compare_exchange_weak(x, true, in main()
/external/libcxx/test/support/
Dcmpxchg_loop.h15 if (atomic.compare_exchange_weak(expected, desired) == true) { in cmpxchg_weak_loop()
28 if (atomic.compare_exchange_weak(expected, desired, success, in cmpxchg_weak_loop()
/external/rust/crates/grpcio/src/
Dcq.rs46 match self.ref_cnt.compare_exchange_weak( in add_ref()
64 match self.ref_cnt.compare_exchange_weak( in unref()
92 match self.ref_cnt.compare_exchange_weak( in shutdown()
/external/cronet/buildtools/third_party/libc++/trunk/test/support/
Dcmpxchg_loop.h14 if (atomic.compare_exchange_weak(expected, desired) == true) { in cmpxchg_weak_loop()
27 if (atomic.compare_exchange_weak(expected, desired, success, in cmpxchg_weak_loop()
/external/libcxx/test/std/atomics/atomics.types.generic/
Dbool.pass.cpp87 assert(obj.compare_exchange_weak(x, true, in main()
142 assert(obj.compare_exchange_weak(x, true, in main()
197 assert(obj.compare_exchange_weak(x, true, in main()
/external/cronet/buildtools/third_party/libc++/trunk/include/
Datomic88 bool compare_exchange_weak(T& expc, T desr,
90 bool compare_exchange_weak(T& expc, T desr, memory_order s, memory_order f) noexcept;
95 bool compare_exchange_weak(T& expc, T desr,
97 bool compare_exchange_weak(T& expc, T desr,
140 bool compare_exchange_weak(integral& expc, integral desr,
142 bool compare_exchange_weak(integral& expc, integral desr,
148 bool compare_exchange_weak(integral& expc, integral desr,
150 bool compare_exchange_weak(integral& expc, integral desr,
223 bool compare_exchange_weak(T*& expc, T* desr,
225 bool compare_exchange_weak(T*& expc, T* desr,
[all …]
/external/eigen/unsupported/test/
Dcxx11_eventcount.cpp55 if (val_.compare_exchange_weak(val, val + 1, std::memory_order_relaxed)) in Push()
66 if (val_.compare_exchange_weak(val, val - 1, std::memory_order_relaxed)) in Pop()
/external/cronet/buildtools/third_party/libc++/trunk/include/__atomic/
Datomic_base.h73 compare_exchange_weak(_Tp& __e, _Tp __d, memory_order __s, memory_order __f) volatile _NOEXCEPT in compare_exchange_weak() function
77 …_LIBCPP_HIDE_FROM_ABI bool compare_exchange_weak(_Tp& __e, _Tp __d, memory_order __s, memory_order… in compare_exchange_weak() function
91compare_exchange_weak(_Tp& __e, _Tp __d, memory_order __m = memory_order_seq_cst) volatile _NOEXCE…
95 compare_exchange_weak(_Tp& __e, _Tp __d, memory_order __m = memory_order_seq_cst) _NOEXCEPT {
/external/rust/crates/grpcio/src/task/
Dexecutor.rs112 match self.state.compare_exchange_weak( in mark_notified()
119 Err(POLLING) => match self.state.compare_exchange_weak( in mark_notified()
/external/rust/crates/crossbeam-queue/src/
Darray_queue.rs155 match self.tail.compare_exchange_weak( in push_or_else()
240 .compare_exchange_weak(head, new_head, Ordering::SeqCst, Ordering::Relaxed) in force_push()
302 match self.head.compare_exchange_weak( in pop()
/external/libcxx/include/
Datomic107 bool compare_exchange_weak(T& expc, T desr,
109 bool compare_exchange_weak(T& expc, T desr, memory_order s, memory_order f) noexcept;
114 bool compare_exchange_weak(T& expc, T desr,
116 bool compare_exchange_weak(T& expc, T desr,
147 bool compare_exchange_weak(integral& expc, integral desr,
149 bool compare_exchange_weak(integral& expc, integral desr,
155 bool compare_exchange_weak(integral& expc, integral desr,
157 bool compare_exchange_weak(integral& expc, integral desr,
222 bool compare_exchange_weak(T*& expc, T* desr,
224 bool compare_exchange_weak(T*& expc, T* desr,
[all …]
/external/libchromeos-rs/src/sync/
Dmu.rs208 .compare_exchange_weak(0, LOCKED, Ordering::Acquire, Ordering::Relaxed) in lock()
217 .compare_exchange_weak( in lock()
236 .compare_exchange_weak(0, READ_LOCK, Ordering::Acquire, Ordering::Relaxed) in read_lock()
243 .compare_exchange_weak( in read_lock()
274 .compare_exchange_weak( in lock_slow()
292 .compare_exchange_weak( in lock_slow()
328 match self.state.compare_exchange_weak( in lock_slow()
443 .compare_exchange_weak( in unlock_slow()
479 match self.state.compare_exchange_weak( in unlock_slow()
534 .compare_exchange_weak( in transfer_waiters()
[all …]

123456