Searched refs:object_counter_ (Results 1 – 2 of 2) sorted by relevance
/external/sfntly/cpp/src/test/ |
D | smart_pointer_test.cc | 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() 73 EXPECT_EQ(size_t(0), RefCounted<Foo>::object_counter_); in TestSmartPointer()
|
/external/sfntly/cpp/src/sfntly/port/ |
D | refcount.h | 89 typeid(this).name(), object_counter_, object_id_, ref_count_) 126 AtomicIncrement(&object_counter_); in RefCounted() 133 AtomicDecrement(&object_counter_); in ~RefCounted() 164 static size_t object_counter_; variable 171 template <typename TDerived> size_t RefCounted<TDerived>::object_counter_ = 0;
|