| 10 | namespace subtle { |
| 11 | |
| 12 | bool RefCountedThreadSafeBase::HasOneRef() const { |
| 13 | return AtomicRefCountIsOne( |
| 14 | &const_cast<RefCountedThreadSafeBase*>(this)->ref_count_); |
| 15 | } |
| 16 | |
| 17 | RefCountedThreadSafeBase::RefCountedThreadSafeBase() : ref_count_(0) { |
| 18 | #ifndef NDEBUG |