/foundation/graphic/graphic_3d/kits/js/src/ |
H A D | BaseObjectJS.cpp | 94 void TrueRootObject::SetNativeObject(META_NS::IObject::Ptr real, bool strong) in SetNativeObject() argument 96 if (strong) { in SetNativeObject() 104 // if we have a strong ref... in GetNativeObject() 114 // Synchronously destroy the lume object in engine thread.. (only for strong refs.) in Finalize() 127 NapiApi::Object CreateJsObj(napi_env env, const BASE_NS::string_view jsName, META_NS::IObject::Ptr real, bool strong, in CreateJsObj() argument 135 oo->SetNativeObject(real, strong); in CreateJsObj() 208 napi_env env, const META_NS::IObject::Ptr& obj, bool strong, uint32_t argc, napi_value* argv) in CreateFromNativeInstance() 254 nodeJS = CreateJsObj(env, name, obj, strong, argc, argv); in CreateFromNativeInstance() 207 CreateFromNativeInstance( napi_env env, const META_NS::IObject::Ptr& obj, bool strong, uint32_t argc, napi_value* argv) CreateFromNativeInstance() argument
|
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | refbase.cpp | 74 RefTracker::RefTracker(RefTracker* exTracker, const void* id, int strong, int weak, int ref, int pid, int tid) in RefTracker() argument 75 : ptrID (id), strongRefCNT (strong), weakRefCNT (weak), refCNT (ref), PID (pid), TID (tid), exTrace (exTracker) in RefTracker() 79 void RefTracker::GetTrace(RefTracker* exTracker, const void* id, int strong, int weak, int ref, int pid, int tid) in GetTrace() argument 82 strongRefCNT = strong; in GetTrace() 90 void RefTracker::GetStrongTrace(RefTracker* exTracker, const void* id, int strong, int pid, int tid) in GetStrongTrace() argument 93 strongRefCNT = strong; in GetStrongTrace() 231 // unexpected case: there had never a strong reference. in DecStrongRefCount() 273 // only weak ptr case: no strong reference, delete the object in DecWeakRefCount() 322 // if the object already had strong references.just promoting it. in AttemptIncStrongRef() 353 // the object destroyed on strong referenc in AttemptIncStrongRef() [all...] |
H A D | refbase.h | 51 * @brief A value indicates no strong references exist ever. 69 * Objects which are strong referenced ought to be alive/existed 70 * as long as this strong reference exists, thus the reference 135 * @brief Increment the strong reference count to the 143 * @brief Decrement the strong reference count to the 147 * @note If the strong reference has never existed, 153 * @brief Get the strong reference count to the 174 * corresponding RefBase object with no strong reference ever, 175 * or the object with strong reference count of 0 but has not been 206 * @brief Attempt to increment the strong referenc [all...] |
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | submesh_impl.cpp | 135 auto strong = ite->lock(); variable 136 if (!strong || bridge == strong) {
|
H A D | mesh_impl.cpp | 404 [](auto strong) { in UpdateMeshFromArrays() 405 if (auto self = static_cast<MeshImpl*>(strong.get())) { in UpdateMeshFromArrays()
|
/foundation/arkui/ace_engine/frameworks/base/memory/ |
H A D | referenced.h | 82 // Release this instance, while its strong reference have reduced to zero. in DecRefCount() 156 // Decrease strong reference count. in ~RefPtr() 195 // Construct a temporary 'RefPtr' by different parameters to increase strong reference count of the new instance, 196 // swap with 'this', and then decrease strong reference of the old instance while destroying the temporary 'RefPtr'. 289 // 'WeakPtr' may construct 'RefPtr' without increasing its strong reference count, 290 // because strong reference count is already increased in 'WeakPtr' while upgrading. 295 // Increase strong reference count for holding instance. in RefPtr() 441 bool operator==(const RefPtr<O>& strong) const in operator ==() 443 return strong.rawPtr_ != nullptr ? strong in operator ==() [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/src/ |
H A D | object_registry.cpp | 425 if (auto strong = v.second.ptr.lock()) { in GetAllObjectInstances() 426 result.emplace_back(strong); in GetAllObjectInstances() 440 if (auto strong = s.second.lock()) { in GetAllSingletonObjectInstances() 441 result.push_back(strong); in GetAllSingletonObjectInstances() 456 if (auto strong = i.second.ptr.lock()) { in GetObjectInstancesByCategory() 457 result.emplace_back(strong); in GetObjectInstancesByCategory() 490 if (auto strong = it2->second.ptr.lock()) { in GetObjectInstanceByInstanceId() 491 return strong; in GetObjectInstanceByInstanceId()
|
/foundation/resourceschedule/ffrt/interfaces/inner_api/c/ |
H A D | type_def_ext.h | 149 strong = ffrt_stack_protect_strong, member in ffrt::stack_protect
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_utils_bridge.cpp | 104 auto* strong = GetPointerField<NativeStrongRef>(runtimeCallInfo); in GetNativeHandleForStrong() local 105 if (strong != nullptr && strong->strongRef) { in GetNativeHandleForStrong() 106 return panda::NativePointerRef::New(vm, strong->RawPtr()); in GetNativeHandleForStrong()
|
/foundation/graphic/graphic_3d/kits/js/include/ |
H A D | BaseObjectJS.h | 32 // Optionally make the reference strong so that the lifetime is controlled by JS. 209 napi_env env, const META_NS::IObject::Ptr& obj, bool strong, uint32_t argc, napi_value* argv); 210 NapiApi::Object CreateJsObj(napi_env env, const BASE_NS::string_view jsName, META_NS::IObject::Ptr real, bool strong,
|