/third_party/node/src/ |
D | node_util.cc | 214 WeakReference* weak_ref = Unwrap<WeakReference>(args.Holder()); in Get() local 216 if (!weak_ref->target_.IsEmpty()) in Get() 217 args.GetReturnValue().Set(weak_ref->target_.Get(isolate)); in Get() 221 WeakReference* weak_ref = Unwrap<WeakReference>(args.Holder()); in IncRef() local 222 weak_ref->reference_count_++; in IncRef() 223 if (weak_ref->target_.IsEmpty()) return; in IncRef() 224 if (weak_ref->reference_count_ == 1) weak_ref->target_.ClearWeak(); in IncRef() 228 WeakReference* weak_ref = Unwrap<WeakReference>(args.Holder()); in DecRef() local 229 CHECK_GE(weak_ref->reference_count_, 1); in DecRef() 230 weak_ref->reference_count_--; in DecRef() [all …]
|
/third_party/grpc/test/core/iomgr/ |
D | tcp_server_uv_test.cc | 78 server_weak_ref* weak_ref = static_cast<server_weak_ref*>(arg); in server_weak_ref_shutdown() local 79 weak_ref->server = NULL; in server_weak_ref_shutdown() 82 static void server_weak_ref_init(server_weak_ref* weak_ref) { in server_weak_ref_init() argument 83 weak_ref->server = NULL; in server_weak_ref_init() 84 GRPC_CLOSURE_INIT(&weak_ref->server_shutdown, server_weak_ref_shutdown, in server_weak_ref_init() 85 weak_ref, grpc_schedule_on_exec_ctx); in server_weak_ref_init() 93 static void server_weak_ref_set(server_weak_ref* weak_ref, in server_weak_ref_set() argument 95 grpc_tcp_server_shutdown_starting_add(server, &weak_ref->server_shutdown); in server_weak_ref_set() 96 weak_ref->server = server; in server_weak_ref_set() 232 server_weak_ref weak_ref; in test_connect() local [all …]
|
D | tcp_server_posix_test.cc | 116 server_weak_ref* weak_ref = static_cast<server_weak_ref*>(arg); in server_weak_ref_shutdown() local 117 weak_ref->server = nullptr; in server_weak_ref_shutdown() 120 static void server_weak_ref_init(server_weak_ref* weak_ref) { in server_weak_ref_init() argument 121 weak_ref->server = nullptr; in server_weak_ref_init() 122 GRPC_CLOSURE_INIT(&weak_ref->server_shutdown, server_weak_ref_shutdown, in server_weak_ref_init() 123 weak_ref, grpc_schedule_on_exec_ctx); in server_weak_ref_init() 131 static void server_weak_ref_set(server_weak_ref* weak_ref, in server_weak_ref_set() argument 133 grpc_tcp_server_shutdown_starting_add(server, &weak_ref->server_shutdown); in server_weak_ref_set() 134 weak_ref->server = server; in server_weak_ref_set() 305 server_weak_ref weak_ref; in test_connect() local [all …]
|
/third_party/grpc/src/python/grpcio_tests/tests/unit/ |
D | _abort_test.py | 122 weak_ref = weakref.ref(do_not_leak_me) 132 self.assertIsNone(weak_ref())
|
/third_party/glib/gobject/ |
D | gobject.h | 911 void g_weak_ref_init (GWeakRef *weak_ref, 914 void g_weak_ref_clear (GWeakRef *weak_ref); 916 gpointer g_weak_ref_get (GWeakRef *weak_ref); 918 void g_weak_ref_set (GWeakRef *weak_ref,
|
D | gobject.c | 4517 g_weak_ref_init (GWeakRef *weak_ref, in g_weak_ref_init() argument 4520 weak_ref->priv.p = NULL; in g_weak_ref_init() 4522 g_weak_ref_set (weak_ref, object); in g_weak_ref_init() 4539 g_weak_ref_clear (GWeakRef *weak_ref) in g_weak_ref_clear() argument 4541 g_weak_ref_set (weak_ref, NULL); in g_weak_ref_clear() 4544 weak_ref->priv.p = (void *) 0xccccccccu; in g_weak_ref_clear() 4567 g_weak_ref_get (GWeakRef *weak_ref) in g_weak_ref_get() argument 4571 g_return_val_if_fail (weak_ref!= NULL, NULL); in g_weak_ref_get() 4575 object_or_null = weak_ref->priv.p; in g_weak_ref_get() 4599 g_weak_ref_set (GWeakRef *weak_ref, in g_weak_ref_set() argument [all …]
|
/third_party/flutter/skia/include/private/ |
D | SkWeakRefCnt.h | 112 void weak_ref() const { in weak_ref() function
|
/third_party/skia/include/private/ |
D | SkWeakRefCnt.h | 112 void weak_ref() const { in weak_ref() function
|
/third_party/glib/gio/ |
D | gdbusobjectmanagerclient.c | 1348 GWeakRef *weak_ref = g_new0 (GWeakRef, 1); in weak_ref_new() local 1349 g_weak_ref_init (weak_ref, object); in weak_ref_new() 1350 return g_steal_pointer (&weak_ref); in weak_ref_new() 1354 weak_ref_free (GWeakRef *weak_ref) in weak_ref_free() argument 1356 g_weak_ref_clear (weak_ref); in weak_ref_free() 1357 g_free (weak_ref); in weak_ref_free()
|
D | gdbusproxy.c | 101 GWeakRef *weak_ref = g_new0 (GWeakRef, 1); in weak_ref_new() local 102 g_weak_ref_init (weak_ref, object); in weak_ref_new() 103 return g_steal_pointer (&weak_ref); in weak_ref_new() 107 weak_ref_free (GWeakRef *weak_ref) in weak_ref_free() argument 109 g_weak_ref_clear (weak_ref); in weak_ref_free() 110 g_free (weak_ref); in weak_ref_free()
|
D | giomodule.c | 897 weak_ref_free (GWeakRef *weak_ref) in weak_ref_free() argument 899 g_weak_ref_clear (weak_ref); in weak_ref_free() 900 g_free (weak_ref); in weak_ref_free()
|
/third_party/flutter/skia/src/fonts/ |
D | SkFontMgr_indirect.cpp | 129 typeface->weak_ref(); in createTypefaceFromFontId()
|
/third_party/skia/src/fonts/ |
D | SkFontMgr_indirect.cpp | 129 typeface->weak_ref(); in createTypefaceFromFontId()
|
/third_party/flutter/skia/tests/ |
D | RefCntTest.cpp | 48 ref->weak_ref(); in bounce_weak_weak_ref()
|
/third_party/skia/tests/ |
D | RefCntTest.cpp | 48 ref->weak_ref(); in bounce_weak_weak_ref()
|