Home
last modified time | relevance | path

Searched refs:weak_ptr (Results 1 – 25 of 57) sorted by relevance

123

/third_party/node/test/cctest/
Dtest_base_object_ptr.cc68 BaseObjectWeakPtr<DummyBaseObject> weak_ptr; in TEST_F() local
73 weak_ptr = ptr; in TEST_F()
76 EXPECT_EQ(weak_ptr.get(), nullptr); in TEST_F()
105 BaseObjectWeakPtr<DummyBaseObject> weak_ptr; in TEST_F() local
110 weak_ptr = ptr; in TEST_F()
114 EXPECT_EQ(weak_ptr.get(), ptr.get()); in TEST_F()
115 EXPECT_EQ(weak_ptr->persistent().IsWeak(), false); in TEST_F()
121 EXPECT_NE(weak_ptr.get(), nullptr); in TEST_F()
122 EXPECT_EQ(weak_ptr->persistent().IsWeak(), true); in TEST_F()
128 EXPECT_EQ(weak_ptr.get(), nullptr); in TEST_F()
[all …]
/third_party/gn/src/base/memory/
Dweak_ptr.h270 bool operator!=(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
271 return !(weak_ptr == nullptr);
274 bool operator!=(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
275 return weak_ptr != nullptr;
278 bool operator==(const WeakPtr<T>& weak_ptr, std::nullptr_t) {
279 return weak_ptr.get() == nullptr;
282 bool operator==(std::nullptr_t, const WeakPtr<T>& weak_ptr) {
283 return weak_ptr == nullptr;
/third_party/rust/crates/cxx/src/
Dweak_ptr.rs31 let mut weak_ptr = MaybeUninit::<WeakPtr<T>>::uninit(); in null() localVariable
32 let new = weak_ptr.as_mut_ptr().cast(); in null()
35 weak_ptr.assume_init() in null()
65 let mut weak_ptr = MaybeUninit::<WeakPtr<T>>::uninit(); in clone() localVariable
66 let new = weak_ptr.as_mut_ptr().cast(); in clone()
70 weak_ptr.assume_init() in clone()
Dcxx.cc718 static_assert(sizeof(std::weak_ptr<CXX_TYPE>) == 2 * sizeof(void *), ""); \
719 static_assert(alignof(std::weak_ptr<CXX_TYPE>) == alignof(void *), ""); \
720 void cxxbridge1$std$weak_ptr$##RUST_TYPE##$null( \
721 std::weak_ptr<CXX_TYPE> *ptr) noexcept { \
722 new (ptr) std::weak_ptr<CXX_TYPE>(); \
724 void cxxbridge1$std$weak_ptr$##RUST_TYPE##$clone( \
725 const std::weak_ptr<CXX_TYPE> &self, \
726 std::weak_ptr<CXX_TYPE> *ptr) noexcept { \
727 new (ptr) std::weak_ptr<CXX_TYPE>(self); \
729 void cxxbridge1$std$weak_ptr$##RUST_TYPE##$downgrade( \
[all …]
Dshared_ptr.rs4 use crate::weak_ptr::{WeakPtr, WeakPtrTarget};
77 let mut weak_ptr = MaybeUninit::<WeakPtr<T>>::uninit(); in downgrade() localVariable
78 let new = weak_ptr.as_mut_ptr().cast(); in downgrade()
81 weak_ptr.assume_init() in downgrade()
Dlib.rs468 mod weak_ptr; module
477 pub use crate::weak_ptr::WeakPtr;
516 pub use crate::weak_ptr::WeakPtrTarget;
Dmemory.rs7 pub use crate::weak_ptr::WeakPtrTarget;
/third_party/libabigail/include/
Dabg-fwd.h53 using std::weak_ptr;
99 typedef weak_ptr<type_base> type_base_wptr;
102 typedef weak_ptr<corpus> corpus_wptr;
137 typedef weak_ptr<typedef_decl> typedef_decl_wptr;
148 typedef weak_ptr<decl_base> decl_base_wptr;
153 typedef weak_ptr<class_or_union> class_or_union_wptr;
166 typedef weak_ptr<class_decl> class_decl_wptr;
180 typedef weak_ptr<function_type> function_type_wptr;
219 typedef weak_ptr<var_decl> var_decl_wptr;
277 typedef weak_ptr<template_decl> template_decl_wptr;
/third_party/node/src/inspector/
Dworker_agent.h18 explicit WorkerAgent(std::weak_ptr<WorkerManager> manager);
32 std::weak_ptr<WorkerManager> manager_;
Dtracing_agent.cc20 std::weak_ptr<NodeTracing::Frontend> frontend) in DeletableFrontendWrapper()
28 std::weak_ptr<NodeTracing::Frontend> frontend_;
34 std::weak_ptr<NodeTracing::Frontend> frontend) in CreateFrontendWrapperRequest()
Dworker_agent.cc14 explicit NodeWorkers(std::weak_ptr<NodeWorker::Frontend> frontend, in NodeWorkers()
26 std::weak_ptr<NodeWorker::Frontend> frontend_;
80 WorkerAgent::WorkerAgent(std::weak_ptr<WorkerManager> manager) in WorkerAgent()
/third_party/node/deps/v8/src/inspector/
Dv8-stack-trace-impl.h109 std::weak_ptr<AsyncStackTrace> m_asyncParent;
127 std::weak_ptr<AsyncStackTrace> parent() const;
145 std::weak_ptr<AsyncStackTrace> m_asyncParent;
Dv8-debugger.h250 std::unordered_map<CachedStackFrameKey, std::weak_ptr<StackFrame>,
255 std::unordered_map<void*, std::weak_ptr<AsyncStackTrace>>;
288 std::unordered_map<uintptr_t, std::weak_ptr<AsyncStackTrace>>;
/third_party/rust/crates/cxx/tests/
Dtest.rs278 let weak_ptr = SharedPtr::downgrade(&shared_ptr); in test_shared_ptr_weak_ptr() localVariable
279 assert_eq!(1, ffi::c_get_use_count(&weak_ptr)); in test_shared_ptr_weak_ptr()
281 assert!(!weak_ptr.upgrade().is_null()); in test_shared_ptr_weak_ptr()
282 assert_eq!(1, ffi::c_get_use_count(&weak_ptr)); in test_shared_ptr_weak_ptr()
285 assert_eq!(0, ffi::c_get_use_count(&weak_ptr)); in test_shared_ptr_weak_ptr()
286 assert!(weak_ptr.upgrade().is_null()); in test_shared_ptr_weak_ptr()
/third_party/node/deps/v8/src/libplatform/
Ddefault-job.h132 DefaultJobWorker(std::weak_ptr<DefaultJobState> state, JobTask* job_task) in DefaultJobWorker()
154 std::weak_ptr<DefaultJobState> state_;
/third_party/node/deps/v8/src/wasm/
Dwasm-engine.cc267 key, base::Optional<std::weak_ptr<NativeModule>>(native_module)); in Update()
420 explicit NativeModuleInfo(std::weak_ptr<NativeModule> native_module) in NativeModuleInfo()
421 : weak_ptr(std::move(native_module)) {} in NativeModuleInfo()
424 std::weak_ptr<NativeModule> weak_ptr; member
719 if (auto shared_ptr = native_modules_[native_module]->weak_ptr.lock()) { in TierDownAllModulesPerIsolate()
747 auto shared_ptr = native_modules_[native_module]->weak_ptr.lock(); in TierUpAllModulesPerIsolate()
971 std::vector<std::weak_ptr<NativeModule>> modules_in_isolate; in DeleteCompileJobsOnIsolate()
989 modules_in_isolate.emplace_back(native_modules_[native_module]->weak_ptr); in DeleteCompileJobsOnIsolate()
1322 std::weak_ptr<NativeModule> native_module) in SampleTopTierCodeSizeTask()
1336 const std::weak_ptr<NativeModule> native_module_;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/DWARF/
DDWARFContext.h87 StringMap<std::weak_ptr<DWOFile>> DWOFiles;
88 std::weak_ptr<DWOFile> DWP;
/third_party/skia/third_party/externals/dawn/src/dawn_wire/client/
DBuffer.h104 std::weak_ptr<bool> mDeviceIsAlive;
DDevice.h72 std::weak_ptr<bool> GetAliveWeakPtr();
/third_party/node/deps/v8/src/d8/
Dd8-platforms.cc155 std::weak_ptr<DelayedTaskRunner>& weak_delayed_runner = in GetForegroundTaskRunner()
316 std::unordered_map<TaskRunner*, std::weak_ptr<DelayedTaskRunner>>
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/winrt/
DCoreWindowNativeWindow.h91 std::weak_ptr<InspectableNativeWindow> mHost;
DSwapChainPanelNativeWindow.h88 std::weak_ptr<InspectableNativeWindow> mHost;
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/
DThread.hpp197 std::weak_ptr<Frame> pauseAtFrame GUARDED_BY(mutex);
DWeakMap.hpp33 using Map = std::map<K, std::weak_ptr<V>>;
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
Dmtl_resources.h42 using TextureWeakRef = std::weak_ptr<Texture>;
44 using BufferWeakRef = std::weak_ptr<Buffer>;

123