Home
last modified time | relevance | path

Searched refs:WeakReference (Results 1 – 23 of 23) sorted by relevance

/third_party/cef/libcef_dll/base/
Dcef_weak_ptr.cc10 WeakReference::Flag::Flag() { in Flag()
17 void WeakReference::Flag::Invalidate() { in Invalidate()
28 bool WeakReference::Flag::IsValid() const { in IsValid()
34 bool WeakReference::Flag::MaybeValid() const { in MaybeValid()
38 void WeakReference::Flag::DetachFromThread() { in DetachFromThread()
42 WeakReference::Flag::~Flag() = default;
44 WeakReference::WeakReference() = default;
46 WeakReference::WeakReference(const scoped_refptr<Flag>& flag) : flag_(flag) {} in WeakReference() function in base::internal::WeakReference
48 WeakReference::~WeakReference() = default;
50 WeakReference::WeakReference(WeakReference&& other) noexcept = default;
[all …]
/third_party/gn/src/base/memory/
Dweak_ptr.cc10 WeakReference::Flag::Flag() : is_valid_(true) {} in Flag()
12 void WeakReference::Flag::Invalidate() { in Invalidate()
16 bool WeakReference::Flag::IsValid() const { in IsValid()
20 WeakReference::Flag::~Flag() = default;
22 WeakReference::WeakReference() = default;
24 WeakReference::WeakReference(const scoped_refptr<Flag>& flag) : flag_(flag) {} in WeakReference() function in base::internal::WeakReference
26 WeakReference::~WeakReference() = default;
28 WeakReference::WeakReference(WeakReference&& other) = default;
30 WeakReference::WeakReference(const WeakReference& other) = default;
32 bool WeakReference::is_valid() const { in is_valid()
[all …]
Dweak_ptr.h90 class WeakReference {
109 WeakReference();
110 explicit WeakReference(const scoped_refptr<Flag>& flag);
111 ~WeakReference();
113 WeakReference(WeakReference&& other);
114 WeakReference(const WeakReference& other);
115 WeakReference& operator=(WeakReference&& other) = default;
116 WeakReference& operator=(const WeakReference& other) = default;
129 WeakReference GetRef() const;
136 mutable scoped_refptr<WeakReference::Flag> flag_;
[all …]
/third_party/cef/include/base/
Dcef_weak_ptr.h126 class WeakReference {
150 WeakReference();
151 explicit WeakReference(const scoped_refptr<Flag>& flag);
152 ~WeakReference();
154 WeakReference(WeakReference&& other) noexcept;
155 WeakReference(const WeakReference& other);
156 WeakReference& operator=(WeakReference&& other) noexcept = default;
157 WeakReference& operator=(const WeakReference& other) = default;
171 WeakReference GetRef() const;
178 scoped_refptr<WeakReference::Flag> flag_;
[all …]
/third_party/node/src/
Dnode_util.cc197 class WeakReference : public BaseObject { class
199 WeakReference(Environment* env, Local<Object> object, Local<Object> target) in WeakReference() function in node::util::WeakReference
210 new WeakReference(env, args.This(), args[0].As<Object>()); in New()
214 WeakReference* weak_ref = Unwrap<WeakReference>(args.Holder()); in Get()
221 WeakReference* weak_ref = Unwrap<WeakReference>(args.Holder()); in IncRef()
228 WeakReference* weak_ref = Unwrap<WeakReference>(args.Holder()); in DecRef()
235 SET_MEMORY_INFO_NAME(WeakReference)
236 SET_SELF_SIZE(WeakReference)
337 env->NewFunctionTemplate(WeakReference::New); in Initialize()
339 WeakReference::kInternalFieldCount); in Initialize()
[all …]
/third_party/libwebsockets/test-apps/android/app/src/main/java/org/libwebsockets/client/
DThreadService.java32 import java.lang.ref.WeakReference;
59 private final WeakReference<ThreadService> mService;
61 mService = new WeakReference<ThreadService>(service); in InputHandler()
99 private final WeakReference<ThreadService> mService;
101 mService = new WeakReference<ThreadService>(service); in WorkerThreadRunnable()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DStringPrep.java15 import java.lang.ref.WeakReference;
182 …private static final WeakReference<StringPrep>[] CACHE = (WeakReference<StringPrep>[])new WeakRefe…
305 WeakReference<StringPrep> ref = CACHE[profile]; in getInstance()
320 CACHE[profile] = new WeakReference<StringPrep>(instance); in getInstance()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DStringPrep.java14 import java.lang.ref.WeakReference;
197 …private static final WeakReference<StringPrep>[] CACHE = (WeakReference<StringPrep>[])new WeakRefe…
322 WeakReference<StringPrep> ref = CACHE[profile]; in getInstance()
337 CACHE[profile] = new WeakReference<StringPrep>(instance); in getInstance()
/third_party/node/test/parallel/
Dtest-internal-util-weakreference.js6 const { WeakReference } = internalBinding('util');
9 const ref = new WeakReference(obj);
/third_party/node/lib/
Ddiagnostics_channel.js21 const { WeakReference } = internalBinding('util');
108 channels[name] = new WeakReference(channel);
Ddomain.js56 const { WeakReference } = internalBinding('util');
210 this[kWeak] = new WeakReference(this);
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DSimpleCache.java14 import java.lang.ref.WeakReference;
64 ref = new WeakReference<Map<K, V>>(map); in put()
DTimeZoneGenericNames.java14 import java.lang.ref.WeakReference;
114 private transient WeakReference<LocaleDisplayNames> _localeDisplayNamesRef;
477 _localeDisplayNamesRef = new WeakReference<LocaleDisplayNames>(locNames); in getLocaleDisplayNames()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DSimpleCache.java15 import java.lang.ref.WeakReference;
68 ref = new WeakReference<Map<K, V>>(map); in put()
DTimeZoneGenericNames.java15 import java.lang.ref.WeakReference;
118 private transient WeakReference<LocaleDisplayNames> _localeDisplayNamesRef;
481 _localeDisplayNamesRef = new WeakReference<LocaleDisplayNames>(locNames); in getLocaleDisplayNames()
/third_party/ejdb/src/bindings/ejdb2_jni/src/android/java/com/softmotions/ejdb2/
DJQL.java7 import java.lang.ref.WeakReference;
412 private static class Reference extends WeakReference<JQL> {
/third_party/ejdb/src/bindings/ejdb2_jni/src/main/java/com/softmotions/ejdb2/
DJQL.java7 import java.lang.ref.WeakReference;
418 private static class Reference extends WeakReference<JQL> {
/third_party/flutter/skia/third_party/externals/sdl/src/video/winrt/
DSDL_winrtgamebar.cpp42 static Platform::WeakReference WINRT_MainThreadDispatcher;
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DDescriptors.java52 import java.lang.ref.WeakReference;
1761 WeakReference<EnumValueDescriptor> reference = unknownValues.get(key); in findValueByNumberCreatingIfUnknown()
1767 unknownValues.put(key, new WeakReference<EnumValueDescriptor>(result)); in findValueByNumberCreatingIfUnknown()
1784 private final WeakHashMap<Integer, WeakReference<EnumValueDescriptor>> unknownValues =
1785 new WeakHashMap<Integer, WeakReference<EnumValueDescriptor>>();
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/
DRangeTree.java34 import java.lang.ref.WeakReference;
364 private static final class WeakNodeRef extends WeakReference<Node> {
/third_party/rust/crates/bindgen/bindgen-tests/tests/
Dstylo.hpp94321 class WeakReference : public ::mozilla::RefCounted<WeakReference<T> > class
94324 explicit WeakReference(T* p) : mPtr(p) in WeakReference() function in mozilla::detail::WeakReference
94365 mSelfReferencingWeakPtr.mRef = new detail::WeakReference<T>(static_cast<T*>(this)); in SelfReferencingWeakPtr()
94387 typedef detail::WeakReference<T> WeakReference; typedef in mozilla::WeakPtr
94409 mRef = new WeakReference(nullptr); in operator =()
94423 WeakPtr() : mRef(new WeakReference(nullptr)) {} in WeakPtr()
94435 explicit WeakPtr(const RefPtr<WeakReference>& aOther) : mRef(aOther) {} in WeakPtr()
94437 RefPtr<WeakReference> mRef;
/third_party/node/doc/changelogs/
DCHANGELOG_V11.md971 * [[`731c2731d2`](https://github.com/nodejs/node/commit/731c2731d2)] - **src**: add WeakReference u…
DCHANGELOG_V10.md617 * [[`b9ea23c0ed`](https://github.com/nodejs/node/commit/b9ea23c0ed)] - **src**: add WeakReference u…