Home
last modified time | relevance | path

Searched refs:RefCounted (Results 1 – 25 of 168) sorted by relevance

1234567

/external/tensorflow/tensorflow/core/platform/
Drefcount.h27 class RefCounted {
30 RefCounted();
54 virtual ~RefCounted();
59 RefCounted(const RefCounted&) = delete;
60 void operator=(const RefCounted&) = delete;
65 void operator()(tensorflow::core::RefCounted* o) const { o->Unref(); } in operator()
75 explicit ScopedUnref(const RefCounted* o) : obj_(o) {} in ScopedUnref()
81 const RefCounted* obj_;
88 inline RefCounted::RefCounted() : ref_(1) {} in RefCounted() function
90 inline RefCounted::~RefCounted() { DCHECK_EQ(ref_.load(), 0); } in ~RefCounted()
[all …]
/external/angle/src/libANGLE/renderer/vulkan/
Dvk_internal_shaders_autogen.h203 RefCounted<ShaderAndSerial> **shaderOut);
206 RefCounted<ShaderAndSerial> **shaderOut);
209 RefCounted<ShaderAndSerial> **shaderOut);
212 RefCounted<ShaderAndSerial> **shaderOut);
215 RefCounted<ShaderAndSerial> **shaderOut);
218 RefCounted<ShaderAndSerial> **shaderOut);
221 RefCounted<ShaderAndSerial> **shaderOut);
224 RefCounted<ShaderAndSerial> **shaderOut);
227 RefCounted<ShaderAndSerial> **shaderOut);
230 RefCounted<ShaderAndSerial> **shaderOut);
[all …]
Dvk_internal_shaders_autogen.cpp351 RefCounted<ShaderAndSerial> *shaders, in GetShader()
355 RefCounted<ShaderAndSerial> **shaderOut) in GetShader()
358 RefCounted<ShaderAndSerial> &shader = shaders[shaderFlags]; in GetShader()
395 for (RefCounted<ShaderAndSerial> &shader : mBlitResolve_frag_shaders) in destroy()
399 for (RefCounted<ShaderAndSerial> &shader : mBlitResolveStencilNoExport_comp_shaders) in destroy()
403 for (RefCounted<ShaderAndSerial> &shader : mConvertIndex_comp_shaders) in destroy()
407 for (RefCounted<ShaderAndSerial> &shader : mConvertIndexIndirectLineLoop_comp_shaders) in destroy()
411 for (RefCounted<ShaderAndSerial> &shader : mConvertIndirectLineLoop_comp_shaders) in destroy()
415 for (RefCounted<ShaderAndSerial> &shader : mConvertVertex_comp_shaders) in destroy()
419 for (RefCounted<ShaderAndSerial> &shader : mFullScreenQuad_vert_shaders) in destroy()
[all …]
Dvk_utils.h497 class RefCounted : angle::NonCopyable
500 RefCounted() : mRefCount(0) {}
501 explicit RefCounted(T &&newObject) : mRefCount(0), mObject(std::move(newObject)) {}
502 ~RefCounted() { ASSERT(mRefCount == 0 && !mObject.valid()); }
504 RefCounted(RefCounted &&copy) : mRefCount(copy.mRefCount), mObject(std::move(copy.mObject))
510 RefCounted &operator=(RefCounted &&rhs)
555 void set(RefCounted<T> *refCounted)
578 RefCounted<T> *mRefCounted = nullptr;
599 void set(VkDevice device, RefCounted<T> *refCounted)
619 void setUnreferenced(RefCounted<T> *refCounted)
[all …]
/external/sfntly/cpp/src/test/
Dsmart_pointer_test.cc21 using sfntly::RefCounted;
24 class Foo : public RefCounted<Foo> {
36 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
42 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
49 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
55 EXPECT_EQ(size_t(2), RefCounted<Foo>::object_counter_); in TestSmartPointer()
60 EXPECT_EQ(size_t(2), RefCounted<Foo>::object_counter_); in TestSmartPointer()
63 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
67 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
71 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
[all …]
/external/llvm-project/mlir/lib/ExecutionEngine/
DAsyncRuntime.cpp34 class RefCounted;
55 friend class RefCounted;
79 class RefCounted { class
81 RefCounted(AsyncRuntime *runtime, int32_t refCount = 1) in RefCounted() function in __anon411fb57b0111::RefCounted
86 virtual ~RefCounted() { in ~RefCounted()
91 RefCounted(const RefCounted &) = delete;
92 RefCounted &operator=(const RefCounted &) = delete;
113 struct AsyncToken : public RefCounted {
119 AsyncToken(AsyncRuntime *runtime) : RefCounted(runtime, /*count=*/2) {} in AsyncToken()
129 struct AsyncGroup : public RefCounted {
[all …]
/external/sfntly/cpp/src/sfntly/port/
Drefcount.h121 class RefCounted : virtual public RefCount {
123 RefCounted() : ref_count_(0) { in RefCounted() function
130 RefCounted(const RefCounted<TDerived>&) : ref_count_(0) {} in RefCounted() function
131 virtual ~RefCounted() { in ~RefCounted()
138 RefCounted<TDerived>& operator=(const RefCounted<TDerived>&) {
171 template <typename TDerived> size_t RefCounted<TDerived>::object_counter_ = 0;
172 template <typename TDerived> size_t RefCounted<TDerived>::next_id_ = 0;
/external/grpc-grpc/src/core/lib/gprpp/
Dref_counted.h44 class RefCounted {
62 RefCounted(const RefCounted&) = delete;
63 RefCounted& operator=(const RefCounted&) = delete;
70 RefCounted() { gpr_ref_init(&refs_, 1); } in RefCounted() function
72 virtual ~RefCounted() {} in ~RefCounted()
/external/libchrome/base/memory/
Dref_counted_unittest.cc15 class SelfAssign : public base::RefCounted<SelfAssign> {
20 friend class base::RefCounted<SelfAssign>;
28 friend class base::RefCounted<Derived>;
40 class ScopedRefPtrToSelf : public base::RefCounted<ScopedRefPtrToSelf> {
51 friend class base::RefCounted<ScopedRefPtrToSelf>;
59 class ScopedRefPtrCountBase : public base::RefCounted<ScopedRefPtrCountBase> {
76 friend class base::RefCounted<ScopedRefPtrCountBase>;
102 friend class base::RefCounted<ScopedRefPtrCountDerived>;
111 class Other : public base::RefCounted<Other> {
113 friend class base::RefCounted<Other>;
[all …]
Dref_counted.h295 class RefCounted; variable
300 RefCounted<T, DefaultRefCountedTraits>::DeleteInternal(x); in Destruct()
305 class RefCounted : public subtle::RefCountedBase {
310 RefCounted() : subtle::RefCountedBase(T::kRefCountPreference) {} in RefCounted() function
328 ~RefCounted() = default;
337 DISALLOW_COPY_AND_ASSIGN(RefCounted);
Dref_counted_unittest.nc9 class InitialRefCountIsZero : public base::RefCounted<InitialRefCountIsZero> {
13 friend class base::RefCounted<InitialRefCountIsZero>;
/external/rust/crates/grpcio-sys/grpc/src/core/lib/gprpp/
Dref_counted.h268 class RefCounted : public Impl {
271 ~RefCounted() = default;
311 RefCounted(const RefCounted&) = delete;
312 RefCounted& operator=(const RefCounted&) = delete;
316 explicit RefCounted(const char* trace = nullptr,
/external/grpc-grpc/test/core/gprpp/
Dref_counted_test.cc30 class Foo : public RefCounted<Foo> {
35 TEST(RefCounted, Basic) { in TEST() argument
40 TEST(RefCounted, ExtraRef) { in TEST() argument
/external/sfntly/cpp/src/sample/subtly/
Dcharacter_predicate.h33 public sfntly::RefCounted<AcceptRange> {
48 public sfntly::RefCounted<AcceptSet> {
60 public sfntly::RefCounted<AcceptAll> {
/external/sfntly/cpp/src/sfntly/table/truetype/
Dglyph_table.h36 public RefCounted<GlyphTable> {
112 public RefCounted<GlyphTable::Builder> {
161 class SimpleGlyph : public Glyph, public RefCounted<SimpleGlyph> {
177 public RefCounted<SimpleGlyphBuilder> {
228 class CompositeGlyph : public Glyph, public RefCounted<CompositeGlyph> {
245 public RefCounted<CompositeGlyphBuilder> {
/external/sfntly/cpp/src/sfntly/table/bitmap/
Debsc_table.h25 public RefCounted<EbscTable> {
51 public RefCounted<BitmapScaleTable> {
67 public RefCounted<Builder> {
Dsimple_bitmap_glyph.h25 public RefCounted<SimpleBitmapGlyph> {
28 public RefCounted<Builder> {
Dsmall_glyph_metrics.h26 public RefCounted<SmallGlyphMetrics> {
40 public RefCounted<Builder> {
/external/sfntly/doc/
Dsmart_pointer_usage.md7 Ref-countable object type inherits from RefCounted&lt;&gt;, which have
16 class Foo : public RefCounted<Foo> {
46 - All RefCounted objects must be instantiated on the heap. Allocating
58 > class A : public I, public RefCounted<A>; // A specific implementation
59 > class B : public I, public RefCounted<B>; // B specific implementation
122 > ^([ACDR]) class RefCounted<class sfntly::([A-Za-z0-9:]+)>[ *const]+:oc=([-0-9]+),oid=([0-9]+),rc=…
/external/sfntly/cpp/src/sfntly/table/core/
Dcmap_table.h49 class CMapTable : public SubTableContainerTable, public RefCounted<CMapTable> {
216 class CMapFormat0 : public CMap, public RefCounted<CMapFormat0> {
220 public RefCounted<Builder> {
268 class CMapFormat2 : public CMap, public RefCounted<CMapFormat2> {
272 public RefCounted<Builder> {
321 public RefCounted<CMapFormat4> {
325 public RefCounted<Builder> {
328 class Segment : public RefCounted<Segment> {
497 public RefCounted<Builder> {
Dhorizontal_device_metrics_table.h28 public RefCounted<HorizontalDeviceMetricsTable> {
30 class Builder : public TableBasedTableBuilder, public RefCounted<Builder> {
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/tls/
Dgrpc_tls_credentials_options.h34 : public grpc_core::RefCounted<grpc_tls_error_details> {
48 : public grpc_core::RefCounted<grpc_tls_server_authorization_check_config> {
102 : public grpc_core::RefCounted<grpc_tls_credentials_options> {
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/
Dsubchannel_pool_interface.h64 class SubchannelPoolInterface : public RefCounted<SubchannelPoolInterface> {
67 : RefCounted(GRPC_TRACE_FLAG_ENABLED(grpc_subchannel_pool_trace) in SubchannelPoolInterface()
/external/libchrome/mojo/public/cpp/bindings/
Dsync_handle_registry.h27 : public base::RefCounted<SyncHandleRegistry> {
61 friend class base::RefCounted<SyncHandleRegistry>;
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/
Dcredentials.h102 : grpc_core::RefCounted<grpc_channel_credentials> {
173 : public grpc_core::RefCounted<grpc_call_credentials> {
224 : public grpc_core::RefCounted<grpc_server_credentials> {

1234567