/ohos5.0/foundation/distributedhardware/distributed_camera/services/channel/src/ |
H A D | dcamera_low_latency.cpp | 31 if (refCount_ > REF_INITIAL) { in EnableLowLatency() 32 refCount_++; in EnableLowLatency() 33 …"No need to enable low latency, refCount just plus one and now is: %{public}d.", refCount_.load()); in EnableLowLatency() 53 refCount_++; in EnableLowLatency() 54 DHLOGD("Enable low latency success and now refCount is: %d", refCount_.load()); in EnableLowLatency() 63 if (refCount_ == REF_INITIAL) { in DisableLowLatency() 67 if (refCount_ > REF_NORMAL) { in DisableLowLatency() 68 refCount_--; in DisableLowLatency() 69 …o need to disable low latency, refCount just minus one and now is: %{public}d.", refCount_.load()); in DisableLowLatency() 89 refCount_--; in DisableLowLatency()
|
H A D | dcamera_softbus_latency.cpp | 49 if (refCount_[devId] > REF_INITIAL) { in StartSoftbusTimeSync() 50 refCount_[devId]++; in StartSoftbusTimeSync() 51 …("No need to start time offset, refCount just plus one and now is: %{public}d.", refCount_[devId]); in StartSoftbusTimeSync() 65 refCount_[devId]++; in StartSoftbusTimeSync() 77 if (refCount_[devId] == REF_INITIAL) { in StopSoftbusTimeSync() 81 if (refCount_[devId] > REF_NORMAL) { in StopSoftbusTimeSync() 82 refCount_[devId]--; in StopSoftbusTimeSync() 83 …("No need to stop time offset, refCount just minus one and now is: %{public}d.", refCount_[devId]); in StopSoftbusTimeSync() 93 refCount_[devId]--; in StopSoftbusTimeSync() 95 refCount_.erase(devId); in StopSoftbusTimeSync()
|
/ohos5.0/foundation/arkui/napi/native_engine/impl/ark/ |
H A D | ark_native_reference.cpp | 38 refCount_(initialRefcount), in ArkNativeReference() 88 ++refCount_; in Ref() 89 if (refCount_ == 1) { in Ref() 92 return refCount_; in Ref() 97 if (refCount_ == 0) { in Unref() 98 return refCount_; in Unref() 100 --refCount_; in Unref() 102 return refCount_; in Unref() 104 if (refCount_ == 0) { in Unref() 107 return refCount_; in Unref() [all …]
|
/ohos5.0/foundation/ability/ability_base/interfaces/inner_api/base/include/ |
H A D | light_refbase.h | 36 std::atomic<int> refCount_; 39 LightRefCountBase::LightRefCountBase() : refCount_(0) in LightRefCountBase() 47 const int beforeCount = refCount_.fetch_add(1, std::memory_order_relaxed); in IncStrongRef() 53 const int beforeCount = refCount_.fetch_sub(1, std::memory_order_release); in DecStrongRef() 62 return refCount_.load(std::memory_order_relaxed); in GetRefCount()
|
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/util/ |
H A D | light_refcount_base.cpp | 22 const int beforeCount = refCount_.fetch_add(1, std::memory_order_relaxed); in AddRef() 28 if (refCount_ == 0) { in Release() 32 const int beforeCount = refCount_.fetch_sub(1, std::memory_order_release); in Release()
|
H A D | light_refcount_base.h | 25 inline LightRefCountBase() : refCount_(0) {} in LightRefCountBase() 33 return refCount_.load(std::memory_order_relaxed); in GetRefCount() 40 std::atomic<int> refCount_;
|
/ohos5.0/foundation/ability/idl_tool/util/ |
H A D | light_refcount_base.cpp | 22 const int beforeCount = refCount_.fetch_add(1, std::memory_order_relaxed); in AddRef() 28 if (refCount_ == 0) { in Release() 32 const int beforeCount = refCount_.fetch_sub(1, std::memory_order_release); in Release()
|
H A D | light_refcount_base.h | 25 LightRefCountBase() : refCount_(0) {} in LightRefCountBase() 33 return refCount_.load(std::memory_order_relaxed); in GetRefCount() 40 std::atomic<int> refCount_;
|
H A D | string.cpp | 36 : refCount_(refCount), shareDataSize(size) 55 std::atomic<int> refCount_; 87 int before = data->refCount_.fetch_add(1); in AddRef() 100 int before = data->refCount_.fetch_sub(1); in Release()
|
/ohos5.0/drivers/hdf_core/framework/tools/hdi-gen/util/ |
H A D | light_refcount_base.h | 18 inline LightRefCountBase() : refCount_(0) {} in LightRefCountBase() 26 return refCount_.load(std::memory_order_relaxed); in GetRefCount() 33 std::atomic<int> refCount_;
|
H A D | light_refcount_base.cpp | 15 const int beforeCount = refCount_.fetch_add(1, std::memory_order_relaxed); in AddRef() 21 const int beforeCount = refCount_.fetch_sub(1, std::memory_order_release); in Release()
|
/ohos5.0/foundation/multimedia/media_foundation/video_processing_engine/framework/capi/image_processing/ |
H A D | image_processing_loader.cpp | 35 if (refCount_ > 0) { in LoadLibrary() 36 refCount_++; in LoadLibrary() 43 refCount_++; in LoadLibrary() 50 if (refCount_ == 0) { in UnloadLibrary() 55 refCount_--; in UnloadLibrary() 56 if (refCount_ > 0) { in UnloadLibrary()
|
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/media_manager/ |
H A D | mpeg_manager_factory.cpp | 40 refCount_++; in Acquire() 57 refCount_ = 1; in Acquire() 67 if (--refCount_ == 0) { in Release()
|
/ohos5.0/foundation/ai/ai_engine/services/server/server_executor/source/ |
H A D | engine.cpp | 31 : refCount_(0), in Engine() 61 return refCount_; in GetEngineReference() 66 ++refCount_; in AddEngineReference() 71 refCount_--; in DelEngineReference()
|
/ohos5.0/foundation/multimedia/media_foundation/video_processing_engine/framework/capi/video_processing/ |
H A D | video_processing_loader.cpp | 35 if (refCount_ > 0) { in LoadLibrary() 36 refCount_++; in LoadLibrary() 43 refCount_++; in LoadLibrary() 50 if (refCount_ == 0) { in UnloadLibrary() 55 refCount_--; in UnloadLibrary() 56 if (refCount_ > 0) { in UnloadLibrary()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | ref_object.cpp | 70 : refCount_(1), in RefObject() 76 int refCount = refCount_.load(std::memory_order_seq_cst); in ~RefObject() 161 int refCount = obj->refCount_.fetch_add(1, std::memory_order_seq_cst); in IncObjRef() 173 int refCount = obj->refCount_.fetch_sub(1, std::memory_order_seq_cst); in DecObjRef()
|
/ohos5.0/foundation/ai/ai_engine/services/server/communication_adapter/source/ |
H A D | sa_server_adapter.cpp | 35 SaServerAdapter::SaServerAdapter(int adapterId) : adapterId_(adapterId), refCount_(0) in SaServerAdapter() 56 ++refCount_; in IncRef() 61 refCount_--; in DecRef() 66 return refCount_; in GetRefCount()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/matrix/src/ |
H A D | matrix_event.cpp | 40 refCount_ = std::move(refCount); in SetRefCount() 45 return std::move(refCount_); in StealRefCount()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/ |
H A D | ohos_file.h | 65 refCount_.fetch_add(1, std::memory_order_relaxed); in Ref() 69 if (refCount_.fetch_sub(1, std::memory_order_release) == 1) { in Unref() 76 std::atomic_int32_t refCount_ { 0 };
|
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/src/softbus_adapter/transport/ |
H A D | dsched_softbus_session.cpp | 35 refCount_ = COUNT_INIT_NUM; in DSchedSoftbusSession() 49 refCount_ = COUNT_INIT_NUM; in DSchedSoftbusSession() 61 refCount_++; in OnConnect() 62 HILOGI("session %{public}d current ref cnt: %{public}d", sessionId_, refCount_.load()); in OnConnect() 67 refCount_--; in OnDisconnect() 68 HILOGI("session %{public}d current ref cnt: %{public}d", sessionId_, refCount_.load()); in OnDisconnect() 69 if (refCount_ <= 0) { in OnDisconnect()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | filesystem_api.cpp | 71 uint32_t refCount_ { 0 }; member in __anon035da55e0110::FileMonitorImpl 222 refCount_++; in Ref() 227 if (--refCount_ == 0) { in Unref()
|
/ohos5.0/foundation/distributedhardware/device_manager/interfaces/kits/js4.0/include/ |
H A D | native_devicemanager_js.h | 139 : env_(env), refCount_(0), bundleName_(bundleName) in DmNapiDiscoveryCallback() 153 std::atomic<int32_t> refCount_; variable 160 : env_(env), refCount_(0), bundleName_(bundleName) in DmNapiPublishCallback() 171 std::atomic<int32_t> refCount_; variable
|
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/utils/locks/ |
H A D | async_lock.cpp | 115 if (refCount_ == 0 && heldList_.empty()) { in ProcessPendingLockRequestUnsafe() 245 return ++refCount_; in IncRefCount() 251 uint32_t count = --refCount_; in DecRefCount()
|
/ohos5.0/base/update/updater/services/package/pkg_manager/ |
H A D | pkg_stream.cpp | 46 refCount_++; in AddRef() 51 refCount_--; in DelRef() 56 return refCount_ == 0; in IsRef()
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/channel/include/ |
H A D | dcamera_low_latency.h | 40 std::atomic<int> refCount_ = 0; variable
|