#include "partition_alloc/partition_alloc_base/memory/ref_counted.h"
#include <limits>
#include <ostream>
#include <type_traits>
#include "partition_alloc/build_config.h"
#include "partition_alloc/buildflags.h"
namespace partition_alloc::internal::base::subtle {
bool RefCountedThreadSafeBase::HasOneRef() const { … }
bool RefCountedThreadSafeBase::HasAtLeastOneRef() const { … }
#if PA_BUILDFLAG(DCHECKS_ARE_ON)
RefCountedThreadSafeBase::~RefCountedThreadSafeBase() { … }
#endif
#if !PA_BUILDFLAG(PA_ARCH_CPU_X86_FAMILY)
bool RefCountedThreadSafeBase::Release() const {
return ReleaseImpl();
}
void RefCountedThreadSafeBase::AddRef() const {
AddRefImpl();
}
void RefCountedThreadSafeBase::AddRefWithCheck() const {
AddRefWithCheckImpl();
}
#endif
}