Home
last modified time | relevance | path

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

123

/aosp12/system/chre/platform/freertos/include/chre/target_platform/
H A Datomic_base_impl.h66 inline uint32_t AtomicUint32::fetch_add(uint32_t arg) { in fetch_add() function
67 return mAtomic.fetch_add(arg); in fetch_add()
71 return mAtomic.fetch_add(1); in fetch_increment()
/aosp12/system/chre/platform/linux/include/chre/target_platform/
H A Datomic_base_impl.h64 inline uint32_t AtomicUint32::fetch_add(uint32_t arg) { in fetch_add() function
65 return mAtomic.fetch_add(arg); in fetch_add()
69 return mAtomic.fetch_add(1); in fetch_increment()
/aosp12/system/core/libutils/include/utils/
H A DLightRefBase.h39 mCount.fetch_add(1, std::memory_order_relaxed); in incStrong()
42 if (0 == mCount.fetch_add(1, std::memory_order_relaxed)) { in incStrongRequireStrong()
/aosp12/system/core/libutils/
H A DRefBase.cpp431 const int32_t c = refs->mStrong.fetch_add(1, std::memory_order_relaxed); in incStrong()
451 const int32_t c = refs->mStrong.fetch_add(1, std::memory_order_relaxed); in incStrongRequireStrong()
501 const int32_t c = refs->mStrong.fetch_add(1, std::memory_order_relaxed); in forceIncStrong()
533 const int32_t c __unused = impl->mWeak.fetch_add(1, in incWeak()
542 const int32_t c __unused = impl->mWeak.fetch_add(1, in incWeakRequireWeak()
652 curCount = impl->mStrong.fetch_add(1, std::memory_order_relaxed); in attemptIncStrong()
H A DSharedBuffer.cpp112 mRefs.fetch_add(1, std::memory_order_relaxed); in acquire()
/aosp12/art/runtime/gc/space/
H A Dbump_pointer_space-inl.h86 objects_allocated_.fetch_add(1, std::memory_order_relaxed); in AllocNonvirtual()
87 bytes_allocated_.fetch_add(num_bytes, std::memory_order_relaxed); in AllocNonvirtual()
H A Dbump_pointer_space.cc207 objects_allocated_.fetch_add(thread->GetThreadLocalObjectsAllocated(), std::memory_order_relaxed); in RevokeThreadLocalBuffersLocked()
208 bytes_allocated_.fetch_add(thread->GetThreadLocalBytesAllocated(), std::memory_order_relaxed); in RevokeThreadLocalBuffersLocked()
/aosp12/bionic/benchmarks/
H A Datomic_benchmark.cpp96 result += test_loc.fetch_add(1, std::memory_order_relaxed); in BM_atomic_fetch_add_relaxed()
106 result += test_loc.fetch_add(1, std::memory_order_seq_cst); in BM_atomic_fetch_add_seq_cst()
/aosp12/art/libartbase/base/
H A Dallocator.h89 g_total_bytes_used[tag].fetch_add(bytes, std::memory_order_relaxed); in RegisterAllocation()
90 size_t new_bytes = g_bytes_used[tag].fetch_add(bytes, std::memory_order_relaxed) + bytes; in RegisterAllocation()
/aosp12/system/chre/platform/include/chre/platform/
H A Datomic.h145 uint32_t fetch_add(uint32_t arg);
/aosp12/art/runtime/jit/
H A Ddebugger_interface.cc262 descriptor.seqlock_.fetch_add(1, std::memory_order_relaxed); in Seqlock()
272 descriptor.seqlock_.fetch_add(1, std::memory_order_relaxed); in Sequnlock()
285 writable->seqlock_.fetch_add(1, std::memory_order_release); // Mark as valid. in InsertNewEntry()
395 writable_entry->seqlock_.fetch_add(1, std::memory_order_release); // Mark as invalid. in DeleteJITCodeEntryInternal()
/aosp12/system/chre/platform/slpi/include/chre/target_platform/
H A Datomic_base_impl.h76 inline uint32_t AtomicUint32::fetch_add(uint32_t arg) { in fetch_add() function
/aosp12/art/tools/jvmti-agents/titrace/
H A Dtitrace.cc152 single_step_counter_.fetch_add(1u, std::memory_order_relaxed); in OnSingleStep()
169 instruction_counter_[opcode].fetch_add(1u, std::memory_order_relaxed); in RecordInstruction()
/aosp12/art/libartbase/base/metrics/
H A Dmetrics.h265 void Add(value_t value) { value_.fetch_add(value, std::memory_order::memory_order_relaxed); } in Add()
307 count_.fetch_add(1, std::memory_order::memory_order_release); in Add()
351 buckets_[i].fetch_add(1u, std::memory_order::memory_order_relaxed); in Add()
/aosp12/hardware/google/pixel/power-libperfmgr/libperfmgr/
H A DHintManager.cc89 actions_.at(hint_type).status->stats.count.fetch_add(1); in DoHintStatus()
94 actions_.at(hint_type).status->stats.duration_ms.fetch_add( in DoHintStatus()
111 actions_.at(hint_type).status->stats.duration_ms.fetch_add( in EndHintStatus()
/aosp12/frameworks/av/media/libstagefright/foundation/
H A DMediaBuffer.cpp122 (void) mRefCount.fetch_add(1); in add_ref()
/aosp12/system/extras/tests/tcp_nuke_addr/
H A Dtcp_nuke_addr_test.cpp109 attempts->fetch_add(1); in connectLoop()
/aosp12/frameworks/base/core/jni/
H A Dandroid_util_Binder.cpp347 gNumLocalRefsCreated.fetch_add(1, std::memory_order_relaxed); in JavaBBinder()
365 gNumLocalRefsDeleted.fetch_add(1, memory_order_relaxed); in ~JavaBBinder()
565 gNumDeathRefsCreated.fetch_add(1, std::memory_order_relaxed); in JavaDeathRecipient()
647 gNumDeathRefsDeleted.fetch_add(1, std::memory_order_relaxed); in ~JavaDeathRecipient()
773 uint32_t numProxies = gNumProxies.fetch_add(1, std::memory_order_relaxed); in javaObjectForIBinder()
/aosp12/frameworks/av/media/libmediatranscoding/
H A DTranscodingClientManager.cpp111 mClientId(sCookieCounter.fetch_add(1, std::memory_order_relaxed)), in ClientImpl()
169 int32_t sessionId = mNextSessionId.fetch_add(1); in submitRequest()
/aosp12/frameworks/native/libs/renderengine/skia/debug/
H A DSkiaCapture.cpp127 const uint64_t uniqueID = nextID.fetch_add(1, std::memory_order_relaxed); in endOffscreenCapture()
/aosp12/art/runtime/gc/
H A Dtask_processor_test.cc40 counter_->fetch_add(1U, std::memory_order_seq_cst); in Run()
/aosp12/bionic/libc/kernel/uapi/rdma/
H A Dvmw_pvrdma-abi.h210 struct pvrdma_ex_fetch_add fetch_add; member
/aosp12/art/runtime/base/
H A Dmutex.cc304 wait_time.fetch_add(value, std::memory_order_seq_cst); in AddToWaitTime()
776 num_contenders_.fetch_add(1); in ExclusiveLock()
855 num_contenders_.fetch_add(1); in ExclusiveLockWithTimeout()
899 num_contenders_.fetch_add(1); in HandleSharedLockContention()
/aosp12/frameworks/av/media/codec2/hidl/1.0/utils/
H A DInputSurfaceConnection.cpp214 work->input.ordinal.frameIndex = mFrameIndex.fetch_add( in submitBuffer()
244 work->input.ordinal.frameIndex = mFrameIndex.fetch_add( in submitEos()
/aosp12/bionic/libc/malloc_debug/
H A DRecordData.cpp204 unsigned int entry_index = cur_index_.fetch_add(1); in AddEntryOnly()

123