Home
last modified time | relevance | path

Searched refs:fetch_add (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/external/skqp/src/core/
DSkTaskGroup.cpp14 fPending.fetch_add(+1, std::memory_order_relaxed); in add()
17 fPending.fetch_add(-1, std::memory_order_release); in add()
23 fPending.fetch_add(+N, std::memory_order_relaxed); in batch()
27 fPending.fetch_add(-1, std::memory_order_release); in batch()
/external/skia/src/core/
DSkTaskGroup.cpp14 fPending.fetch_add(+1, std::memory_order_relaxed); in add()
17 fPending.fetch_add(-1, std::memory_order_release); in add()
23 fPending.fetch_add(+N, std::memory_order_relaxed); in batch()
27 fPending.fetch_add(-1, std::memory_order_release); in batch()
/external/rust/crates/crossbeam-deque/tests/
Dinjector.rs96 v[n].fetch_add(1, SeqCst); in mpmc()
172 hits.fetch_add(1, SeqCst); in stress()
178 hits.fetch_add(1, SeqCst); in stress()
182 hits.fetch_add(1, SeqCst); in stress()
193 hits.fetch_add(1, SeqCst); in stress()
203 hits.fetch_add(1, SeqCst); in stress()
232 hits.fetch_add(1, SeqCst); in no_starvation()
238 hits.fetch_add(1, SeqCst); in no_starvation()
242 hits.fetch_add(1, SeqCst); in no_starvation()
Dfifo.rs161 hits.fetch_add(1, SeqCst); in stress()
167 hits.fetch_add(1, SeqCst); in stress()
171 hits.fetch_add(1, SeqCst); in stress()
182 hits.fetch_add(1, SeqCst); in stress()
192 hits.fetch_add(1, SeqCst); in stress()
221 hits.fetch_add(1, SeqCst); in no_starvation()
227 hits.fetch_add(1, SeqCst); in no_starvation()
231 hits.fetch_add(1, SeqCst); in no_starvation()
Dlifo.rs161 hits.fetch_add(1, SeqCst); in stress()
167 hits.fetch_add(1, SeqCst); in stress()
171 hits.fetch_add(1, SeqCst); in stress()
182 hits.fetch_add(1, SeqCst); in stress()
192 hits.fetch_add(1, SeqCst); in stress()
221 hits.fetch_add(1, SeqCst); in no_starvation()
227 hits.fetch_add(1, SeqCst); in no_starvation()
231 hits.fetch_add(1, SeqCst); in no_starvation()
/external/skqp/src/gpu/vk/
DGrVkResource.h77 fKey = fKeyCounter.fetch_add(+1, std::memory_order_relaxed); in GrVkResource()
112 SkDEBUGCODE(int newRefCount = )fRefCnt.fetch_add(+1, std::memory_order_relaxed); in ref()
124 int newRefCount = fRefCnt.fetch_add(-1, std::memory_order_acq_rel); in unref()
137 int newRefCount = fRefCnt.fetch_add(-1, std::memory_order_acq_rel); in unrefAndAbandon()
/external/skia/src/gpu/
DGrGpuResource.h37 (void)fRefCnt.fetch_add(+1, std::memory_order_relaxed); in ref()
48 if (1 == fRefCnt.fetch_add(-1, std::memory_order_acq_rel)) { in unref()
55 (void)fCommandBufferUsageCnt.fetch_add(+1, std::memory_order_relaxed); in addCommandBufferUsage()
60 if (1 == fCommandBufferUsageCnt.fetch_add(-1, std::memory_order_acq_rel)) { in removeCommandBufferUsage()
81 (void)fRefCnt.fetch_add(+1, std::memory_order_relaxed); in addInitialRef()
DGrManagedResource.h81 fKey = fKeyCounter.fetch_add(+1, std::memory_order_relaxed); in GrManagedResource()
116 SkDEBUGCODE(int newRefCount = )fRefCnt.fetch_add(+1, std::memory_order_relaxed); in ref()
127 int newRefCount = fRefCnt.fetch_add(-1, std::memory_order_acq_rel); in unref()
/external/rust/crates/tokio/tests/
Drt_threaded.rs43 let num = cnt.fetch_add(1, Relaxed) + 1; in many_oneshot_futures()
183 self.0.fetch_add(1, Relaxed); in drop_threadpool_drops_futures()
193 a.fetch_add(1, Relaxed); in drop_threadpool_drops_futures()
196 b.fetch_add(1, Relaxed); in drop_threadpool_drops_futures()
232 after_inner.clone().fetch_add(1, Ordering::Relaxed); in start_stop_callbacks_called()
235 before_inner.clone().fetch_add(1, Ordering::Relaxed); in start_stop_callbacks_called()
284 let num = cnt.fetch_add(1, Relaxed) + 1; in blocking()
/external/rust/crates/once_cell/tests/
Dit.rs35 DROP_CNT.fetch_add(1, SeqCst); in once_cell_drop()
140 CALLED.fetch_add(1, SeqCst); in lazy_default()
257 DROP_CNT.fetch_add(1, SeqCst); in once_cell_drop()
382 called.fetch_add(1, SeqCst); in lazy_new()
406 called.fetch_add(1, SeqCst); in lazy_deref_mut()
428 CALLED.fetch_add(1, SeqCst); in lazy_default()
615 cnt.fetch_add(1, SeqCst); in once_non_zero_usize_smoke_test()
624 cnt.fetch_add(1, SeqCst); in once_non_zero_usize_smoke_test()
694 cnt.fetch_add(1, SeqCst); in once_bool_smoke_test()
703 cnt.fetch_add(1, SeqCst); in once_bool_smoke_test()
[all …]
/external/rust/crates/async-task/tests/
Dcancel.rs33 $poll.fetch_add(1, Ordering::SeqCst);
41 $drop_f.fetch_add(1, Ordering::SeqCst);
51 $drop_t.fetch_add(1, Ordering::SeqCst);
78 $drop.fetch_add(1, Ordering::SeqCst);
86 $sched.fetch_add(1, Ordering::SeqCst);
Dready.rs33 $poll.fetch_add(1, Ordering::SeqCst);
41 $drop_f.fetch_add(1, Ordering::SeqCst);
51 $drop_t.fetch_add(1, Ordering::SeqCst);
78 $drop.fetch_add(1, Ordering::SeqCst);
85 $sched.fetch_add(1, Ordering::SeqCst);
/external/llvm/include/llvm/ADT/
DStatistic.h70 Value.fetch_add(1, std::memory_order_relaxed);
76 return Value.fetch_add(1, std::memory_order_relaxed);
92 Value.fetch_add(V, std::memory_order_relaxed);
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DStatistic.h71 Value.fetch_add(1, std::memory_order_relaxed);
77 return Value.fetch_add(1, std::memory_order_relaxed);
93 Value.fetch_add(V, std::memory_order_relaxed);
/external/rust/crates/crossbeam-epoch/src/
Dcollector.rs217 DESTROYS.fetch_add(1, Ordering::Relaxed); in incremental()
250 DESTROYS.fetch_add(1, Ordering::Relaxed); in buffering()
278 DROPS.fetch_add(1, Ordering::Relaxed); in count_drops()
317 DESTROYS.fetch_add(1, Ordering::Relaxed); in count_destroy()
339 DROPS.fetch_add(1, Ordering::Relaxed); in drop_array()
388 DESTROYS.fetch_add(len, Ordering::Relaxed); in destroy_array()
412 DROPS.fetch_add(1, Ordering::Relaxed); in stress()
/external/libchrome/base/
Datomicops_internals_portable.h86 ->fetch_add(increment, std::memory_order_relaxed); in NoBarrier_AtomicIncrement()
91 return increment + ((AtomicLocation32)ptr)->fetch_add(increment); in Barrier_AtomicIncrement()
169 ->fetch_add(increment, std::memory_order_relaxed); in NoBarrier_AtomicIncrement()
174 return increment + ((AtomicLocation64)ptr)->fetch_add(increment); in Barrier_AtomicIncrement()
/external/llvm-project/mlir/lib/ExecutionEngine/
DAsyncRuntime.cpp60 numRefCountedObjects.fetch_add(1, std::memory_order_relaxed); in addNumRefCountedObjects()
94 void addRef(int32_t count = 1) { refCount.fetch_add(count); } in addRef()
173 int rank = group->rank.fetch_add(1); in mlirAsyncRuntimeAddTokenToGroup()
174 group->pendingTokens.fetch_add(1); in mlirAsyncRuntimeAddTokenToGroup()
/external/rust/crates/rayon-core/src/scope/
Dtest.rs28 counter.fetch_add(1, Ordering::SeqCst); in scope_two()
31 counter.fetch_add(10, Ordering::SeqCst); in scope_two()
58 counter.fetch_add(1, Ordering::SeqCst); in divide_and_conquer()
68 counter.fetch_add(1, Ordering::SeqCst); in divide_and_conquer_seq()
451 COUNTER.fetch_add(i, Ordering::Relaxed); in static_scope()
473 COUNTER.fetch_add(i, Ordering::Relaxed); in static_scope_fifo()
488 c.fetch_add(1, Ordering::Relaxed); in mixed_lifetime_scope()
506 c.fetch_add(1, Ordering::Relaxed); in mixed_lifetime_scope_fifo()
/external/rust/crates/tokio/src/runtime/tests/
Dloom_pool.rs62 if 1 == c1.fetch_add(1, Relaxed) { in pool_multi_spawn()
71 if 1 == c2.fetch_add(1, Relaxed) { in pool_multi_spawn()
138 if NUM == cnt.fetch_add(1, Relaxed) + 1 { in blocking_and_regular_inner()
278 if 1 == c1.fetch_add(1, Relaxed) { in pool_multi_notify()
288 if 1 == c2.fetch_add(1, Relaxed) { in pool_multi_notify()
/external/llvm-project/llvm/include/llvm/ADT/
DStatistic.h82 Value.fetch_add(1, std::memory_order_relaxed);
88 return Value.fetch_add(1, std::memory_order_relaxed);
104 Value.fetch_add(V, std::memory_order_relaxed);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DStatistic.h80 Value.fetch_add(1, std::memory_order_relaxed);
86 return Value.fetch_add(1, std::memory_order_relaxed);
102 Value.fetch_add(V, std::memory_order_relaxed);
/external/oboe/src/fifo/
DFifoController.h43 mReadCounter.fetch_add(n, std::memory_order_acq_rel); in incrementReadCounter()
52 mWriteCounter.fetch_add(n, std::memory_order_acq_rel); in incrementWriteCounter()
DFifoControllerIndirect.h45 mReadCounterAddress->fetch_add(n, std::memory_order_acq_rel); in incrementReadCounter()
54 mWriteCounterAddress->fetch_add(n, std::memory_order_acq_rel); in incrementWriteCounter()
/external/skia/include/private/
DSkWeakRefCnt.h116 (void)fWeakCnt.fetch_add(+1, std::memory_order_relaxed); in weak_ref()
127 if (1 == fWeakCnt.fetch_add(-1, std::memory_order_acq_rel)) { in weak_unref()
/external/skqp/include/private/
DSkWeakRefCnt.h116 (void)fWeakCnt.fetch_add(+1, std::memory_order_relaxed); in weak_ref()
127 if (1 == fWeakCnt.fetch_add(-1, std::memory_order_acq_rel)) { in weak_unref()

12345678910>>...13