Home
last modified time | relevance | path

Searched refs:ref_count_ (Results 1 – 11 of 11) sorted by relevance

/external/sfntly/cpp/src/test/
Dsmart_pointer_test.cc35 EXPECT_EQ(size_t(1), p1->ref_count_); in TestSmartPointer()
40 EXPECT_EQ(size_t(2), p1->ref_count_); in TestSmartPointer()
41 EXPECT_EQ(size_t(2), p2->ref_count_); in TestSmartPointer()
46 EXPECT_EQ(size_t(3), p1->ref_count_); in TestSmartPointer()
47 EXPECT_EQ(size_t(3), p2->ref_count_); in TestSmartPointer()
48 EXPECT_EQ(size_t(3), p3->ref_count_); in TestSmartPointer()
52 EXPECT_EQ(size_t(2), p1->ref_count_); in TestSmartPointer()
53 EXPECT_EQ(size_t(1), p2->ref_count_); in TestSmartPointer()
54 EXPECT_EQ(size_t(2), p3->ref_count_); in TestSmartPointer()
58 EXPECT_EQ(size_t(1), p1->ref_count_); in TestSmartPointer()
[all …]
/external/webrtc/src/system_wrappers/interface/
Dref_count.h46 RefCountImpl() : ref_count_(0) {} in RefCountImpl()
49 explicit RefCountImpl(P p) : T(p), ref_count_(0) {} in RefCountImpl()
52 RefCountImpl(P1 p1, P2 p2) : T(p1, p2), ref_count_(0) {} in RefCountImpl()
55 RefCountImpl(P1 p1, P2 p2, P3 p3) : T(p1, p2, p3), ref_count_(0) {} in RefCountImpl()
58 RefCountImpl(P1 p1, P2 p2, P3 p3, P4 p4) : T(p1, p2, p3, p4), ref_count_(0) {} in RefCountImpl()
62 : T(p1, p2, p3, p4, p5), ref_count_(0) {} in RefCountImpl()
65 return ++ref_count_; in AddRef()
70 ref_count = --ref_count_; in Release()
77 Atomic32 ref_count_;
/external/sfntly/cpp/src/sfntly/port/
Drefcount.h89 typeid(this).name(), object_counter_, object_id_, ref_count_)
125 RefCounted() : ref_count_(0) { in RefCounted()
132 RefCounted(const RefCounted<TDerived>&) : ref_count_(0) {} in RefCounted()
146 size_t new_count = AtomicIncrement(&ref_count_); in AddRef()
152 size_t new_ref_count = AtomicDecrement(&ref_count_); in Release()
162 mutable size_t ref_count_; // reference count of current object variable
/external/openfst/src/include/fst/
Dadd-on.h53 int RefCount() const { return ref_count_.count(); } in RefCount()
54 int IncrRefCount() { return ref_count_.Incr(); } in IncrRefCount()
55 int DecrRefCount() { return ref_count_.Decr(); } in DecrRefCount()
58 RefCounter ref_count_;
120 int RefCount() const { return ref_count_.count(); } in RefCount()
123 return ref_count_.Incr(); in IncrRefCount()
127 return ref_count_.Decr(); in DecrRefCount()
133 RefCounter ref_count_; variable
Daccumulator.h138 int RefCount() const { return ref_count_.count(); } in RefCount()
139 int IncrRefCount() { return ref_count_.Incr(); } in IncrRefCount()
140 int DecrRefCount() { return ref_count_.Decr(); } in DecrRefCount()
151 RefCounter ref_count_; // Reference count. variable
379 int RefCount() const { return ref_count_.count(); } in RefCount()
380 int IncrRefCount() { return ref_count_.Incr(); } in IncrRefCount()
381 int DecrRefCount() { return ref_count_.Decr(); } in DecrRefCount()
418 RefCounter ref_count_; variable
637 int RefCount() const { return ref_count_.count(); } in RefCount()
638 int IncrRefCount() { return ref_count_.Incr(); } in IncrRefCount()
[all …]
Dsymbol-table.h150 return ref_count_.Incr(); in IncrRefCount()
153 return ref_count_.Decr(); in DecrRefCount()
156 return ref_count_.count(); in RefCount()
197 mutable RefCounter ref_count_; variable
Dlabel-reachable.h95 int RefCount() const { return ref_count_.count(); } in RefCount()
96 int IncrRefCount() { return ref_count_.Incr(); } in IncrRefCount()
97 int DecrRefCount() { return ref_count_.Decr(); } in DecrRefCount()
106 RefCounter ref_count_; // Reference count. variable
Dencode.h175 int RefCount() const { return ref_count_.count(); } in RefCount()
176 int IncrRefCount() { return ref_count_.Incr(); } in IncrRefCount()
177 int DecrRefCount() { return ref_count_.Decr(); } in DecrRefCount()
210 RefCounter ref_count_; variable
Dedit-fst.h112 int RefCount() const { return ref_count_.count(); } in RefCount()
113 int IncrRefCount() { return ref_count_.Incr(); } in IncrRefCount()
114 int DecrRefCount() { return ref_count_.Decr(); } in DecrRefCount()
330 RefCounter ref_count_; variable
Dfst.h665 return ref_count_.count(); in RefCount()
669 return ref_count_.Incr(); in IncrRefCount()
673 return ref_count_.Decr(); in DecrRefCount()
774 RefCounter ref_count_; // Reference count variable
Dcompact-fst.h181 int RefCount() const { return ref_count_.count(); } in RefCount()
182 int IncrRefCount() { return ref_count_.Incr(); } in IncrRefCount()
183 int DecrRefCount() { return ref_count_.Decr(); } in DecrRefCount()
196 RefCounter ref_count_; variable