Home
last modified time | relevance | path

Searched refs:WeakPtr (Results 1 - 25 of 50) sorted by relevance

12

/third_party/vk-gl-cts/framework/delibs/decpp/
H A DdeSharedPtr.hpp64 volatile deInt32 weakRefCount; //!< WeakPtr references + StrongPtr references.
96 class WeakPtr;
122 explicit SharedPtr (const WeakPtr<Y>& other);
131 SharedPtr& operator= (const WeakPtr<Y>& other);
148 void acquireFromWeak (const WeakPtr<T>& other);
154 friend class WeakPtr<T>;
163 * WeakPtr manages weak references to objects owned by SharedPtr. Shared
168 * WeakPtr can be converted back to SharedPtr but that operation can fail
173 class WeakPtr class
176 WeakPtr (voi
538 inline WeakPtr<T>::WeakPtr (void) WeakPtr() function in de::WeakPtr
549 inline WeakPtr<T>::WeakPtr (const WeakPtr<T>& other) WeakPtr() function in de::WeakPtr
561 inline WeakPtr<T>::WeakPtr (const SharedPtr<T>& other) WeakPtr() function in de::WeakPtr
[all...]
H A DdeSharedPtr.cpp124 WeakPtr<Object> ptrA(m_ptr); in run()
126 WeakPtr<Object> ptrB; in run()
367 WeakPtr<Object> weakPtr(ptr); in SharedPtr_selfTest()
409 // Basic WeakPtr threaded test. in SharedPtr_selfTest()
/third_party/gn/src/base/memory/
H A Dweak_ptr.h31 // static void StartNew(const WeakPtr<Controller>& controller) {
36 // Worker(const WeakPtr<Controller>& controller)
42 // WeakPtr<Controller> controller_;
55 // To ensure correct use, the first time a WeakPtr issued by a WeakPtrFactory
62 // If all WeakPtr objects are destroyed or invalidated then the factory is
64 // destroyed, or new WeakPtr objects may be used, from a different sequence.
66 // Thus, at least one WeakPtr object must exist and have been dereferenced on
67 // the correct thread to enforce that other WeakPtr objects will enforce they
84 class WeakPtr;
87 // These classes are part of the WeakPtr implementatio
218 class WeakPtr : public internal::WeakPtrBase { global() class
222 WeakPtr(std::nullptr_t) {} WeakPtr() function in base::WeakPtr
227 WeakPtr(const WeakPtr<U>& other) : WeakPtrBase(other) { WeakPtr() function in base::WeakPtr
234 WeakPtr(WeakPtr<U>&& other) : WeakPtrBase(std::move(other)) { WeakPtr() function in base::WeakPtr
264 WeakPtr(const internal::WeakReference& ref, T* ptr) WeakPtr() function in base::WeakPtr
[all...]
/third_party/rust/crates/cxx/src/
H A Dweak_ptr.rs10 /// The typical way to construct a WeakPtr from Rust is by [downgrading] from a
15 pub struct WeakPtr<T> structure names
23 impl<T> WeakPtr<T> impls
27 /// Makes a new WeakPtr wrapping a null pointer.
31 let mut weak_ptr = MaybeUninit::<WeakPtr<T>>::uninit(); in null()
57 unsafe impl<T> Send for WeakPtr<T> where T: Send + Sync + WeakPtrTarget {}
58 unsafe impl<T> Sync for WeakPtr<T> where T: Send + Sync + WeakPtrTarget {}
60 impl<T> Clone for WeakPtr<T>
65 let mut weak_ptr = MaybeUninit::<WeakPtr<T>>::uninit(); in clone()
75 impl<T> Drop for WeakPtr<
[all...]
H A Dshared_ptr.rs4 use crate::weak_ptr::{WeakPtr, WeakPtrTarget};
67 /// Constructs new WeakPtr as a non-owning reference to the object managed
68 /// by `self`. If `self` manages no object, the WeakPtr manages no object
72 pub fn downgrade(self: &SharedPtr<T>) -> WeakPtr<T> in downgrade()
77 let mut weak_ptr = MaybeUninit::<WeakPtr<T>>::uninit(); in downgrade()
H A Dlib.rs477 pub use crate::weak_ptr::WeakPtr;
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/
H A Ddispatch.h178 class WeakPtr { class in v8_crdtp::DomainDispatcher
180 explicit WeakPtr(DomainDispatcher*);
181 ~WeakPtr();
196 Callback(std::unique_ptr<WeakPtr> backend_impl,
206 std::unique_ptr<WeakPtr> backend_impl_;
245 std::unique_ptr<WeakPtr> weakPtr();
249 std::unordered_set<WeakPtr*> weak_ptrs_;
H A Ddispatch.cc413 DomainDispatcher::WeakPtr::WeakPtr(DomainDispatcher* dispatcher) in WeakPtr() function in v8_crdtp::DomainDispatcher::WeakPtr
416 DomainDispatcher::WeakPtr::~WeakPtr() { in ~WeakPtr()
428 std::unique_ptr<DomainDispatcher::WeakPtr> backend_impl, in Callback()
513 std::unique_ptr<DomainDispatcher::WeakPtr> DomainDispatcher::weakPtr() { in weakPtr()
514 auto weak = std::make_unique<DomainDispatcher::WeakPtr>(this); in weakPtr()
/third_party/rust/crates/cxx/gen/build/src/syntax/
H A Dpod.rs29 | Type::WeakPtr(_) in is_guaranteed_pod()
H A Dimpls.rs50 Type::WeakPtr(t) => t.hash(state), in hash()
73 (Type::WeakPtr(lhs), Type::WeakPtr(rhs)) => lhs == rhs, in eq()
H A Dcheck.rs52 Type::WeakPtr(ptr) => check_type_weak_ptr(cx, ptr), in do_typecheck()
521 | Type::WeakPtr(ty) in check_api_impl()
602 || ident == "WeakPtr" in check_reserved_name()
649 | Type::WeakPtr(_) in is_unsized()
723 Type::WeakPtr(_) => "weak_ptr".to_owned(), in describe()
H A Dmod.rs232 WeakPtr(Box<Ty1>),
/third_party/rust/crates/cxx/gen/cmd/src/syntax/
H A Dpod.rs29 | Type::WeakPtr(_) in is_guaranteed_pod()
H A Dimpls.rs50 Type::WeakPtr(t) => t.hash(state), in hash()
73 (Type::WeakPtr(lhs), Type::WeakPtr(rhs)) => lhs == rhs, in eq()
H A Dcheck.rs52 Type::WeakPtr(ptr) => check_type_weak_ptr(cx, ptr), in do_typecheck()
521 | Type::WeakPtr(ty) in check_api_impl()
602 || ident == "WeakPtr" in check_reserved_name()
649 | Type::WeakPtr(_) in is_unsized()
723 Type::WeakPtr(_) => "weak_ptr".to_owned(), in describe()
/third_party/rust/crates/cxx/gen/lib/src/syntax/
H A Dpod.rs29 | Type::WeakPtr(_) in is_guaranteed_pod()
H A Dimpls.rs50 Type::WeakPtr(t) => t.hash(state), in hash()
73 (Type::WeakPtr(lhs), Type::WeakPtr(rhs)) => lhs == rhs, in eq()
H A Dcheck.rs52 Type::WeakPtr(ptr) => check_type_weak_ptr(cx, ptr), in do_typecheck()
521 | Type::WeakPtr(ty) in check_api_impl()
602 || ident == "WeakPtr" in check_reserved_name()
649 | Type::WeakPtr(_) in is_unsized()
723 Type::WeakPtr(_) => "weak_ptr".to_owned(), in describe()
/third_party/rust/crates/cxx/macro/src/syntax/
H A Dpod.rs29 | Type::WeakPtr(_) in is_guaranteed_pod()
H A Dimpls.rs50 Type::WeakPtr(t) => t.hash(state), in hash()
73 (Type::WeakPtr(lhs), Type::WeakPtr(rhs)) => lhs == rhs, in eq()
H A Dcheck.rs52 Type::WeakPtr(ptr) => check_type_weak_ptr(cx, ptr), in do_typecheck()
521 | Type::WeakPtr(ty) in check_api_impl()
602 || ident == "WeakPtr" in check_reserved_name()
649 | Type::WeakPtr(_) in is_unsized()
723 Type::WeakPtr(_) => "weak_ptr".to_owned(), in describe()
/third_party/rust/crates/cxx/syntax/
H A Dpod.rs29 | Type::WeakPtr(_) in is_guaranteed_pod()
H A Dimpls.rs50 Type::WeakPtr(t) => t.hash(state), in hash()
73 (Type::WeakPtr(lhs), Type::WeakPtr(rhs)) => lhs == rhs, in eq()
H A Dcheck.rs52 Type::WeakPtr(ptr) => check_type_weak_ptr(cx, ptr), in do_typecheck()
521 | Type::WeakPtr(ty) in check_api_impl()
602 || ident == "WeakPtr" in check_reserved_name()
649 | Type::WeakPtr(_) in is_unsized()
723 Type::WeakPtr(_) => "weak_ptr".to_owned(), in describe()
/third_party/rust/crates/cxx/tests/ffi/
H A Dlib.rs206 fn c_get_use_count(weak: &WeakPtr<C>) -> usize; in c_get_use_count()

Completed in 21 milliseconds

12