MCPcopy Create free account
hub / github.com/apache/impala / HasOneRef

Method HasOneRef

be/src/gutil/ref_counted.cc:54–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54bool RefCountedThreadSafeBase::HasOneRef() const {
55 return base::RefCountIsOne(
56 &const_cast<RefCountedThreadSafeBase*>(this)->ref_count_);
57}
58
59RefCountedThreadSafeBase::RefCountedThreadSafeBase() : ref_count_(0) {
60#ifndef NDEBUG

Callers 2

TEST_FFunction · 0.45
RetireOldMetricsMethod · 0.45

Calls 1

RefCountIsOneFunction · 0.85

Tested by 1

TEST_FFunction · 0.36