|
|
@ -44,7 +44,7 @@ class PolymorphicRefCount { |
|
|
|
GRPC_ABSTRACT_BASE_CLASS |
|
|
|
GRPC_ABSTRACT_BASE_CLASS |
|
|
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
protected: |
|
|
|
GPRC_ALLOW_CLASS_TO_USE_NON_PUBLIC_DELETE |
|
|
|
GRPC_ALLOW_CLASS_TO_USE_NON_PUBLIC_DELETE |
|
|
|
|
|
|
|
|
|
|
|
virtual ~PolymorphicRefCount() = default; |
|
|
|
virtual ~PolymorphicRefCount() = default; |
|
|
|
}; |
|
|
|
}; |
|
|
@ -57,7 +57,7 @@ class NonPolymorphicRefCount { |
|
|
|
GRPC_ABSTRACT_BASE_CLASS |
|
|
|
GRPC_ABSTRACT_BASE_CLASS |
|
|
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
protected: |
|
|
|
GPRC_ALLOW_CLASS_TO_USE_NON_PUBLIC_DELETE |
|
|
|
GRPC_ALLOW_CLASS_TO_USE_NON_PUBLIC_DELETE |
|
|
|
|
|
|
|
|
|
|
|
~NonPolymorphicRefCount() = default; |
|
|
|
~NonPolymorphicRefCount() = default; |
|
|
|
}; |
|
|
|
}; |
|
|
@ -233,7 +233,7 @@ class RefCounted : public Impl { |
|
|
|
GRPC_ABSTRACT_BASE_CLASS |
|
|
|
GRPC_ABSTRACT_BASE_CLASS |
|
|
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
protected: |
|
|
|
GPRC_ALLOW_CLASS_TO_USE_NON_PUBLIC_DELETE |
|
|
|
GRPC_ALLOW_CLASS_TO_USE_NON_PUBLIC_DELETE |
|
|
|
|
|
|
|
|
|
|
|
// TraceFlagT is defined to accept both DebugOnlyTraceFlag and TraceFlag.
|
|
|
|
// TraceFlagT is defined to accept both DebugOnlyTraceFlag and TraceFlag.
|
|
|
|
// Note: RefCount tracing is only enabled on debug builds, even when a
|
|
|
|
// Note: RefCount tracing is only enabled on debug builds, even when a
|
|
|
|