Home
last modified time | relevance | path

Searched refs:StaticCounter (Results 1 – 2 of 2) sorted by relevance

/sdk/emulator/opengl/shared/emugl/common/
Dthread_store_unittest.cpp27 class StaticCounter { class
33 StaticCounter() { in StaticCounter() function in emugl::__anon25785ff70111::StaticCounter
40 ~StaticCounter() { in ~StaticCounter()
70 static StaticCounter* mInstances[kMaxInstances];
73 Mutex StaticCounter::mMutex;
74 size_t StaticCounter::mCreationCount = 0;
75 size_t StaticCounter::mDestructionCount = 0;
76 StaticCounter* StaticCounter::mInstances[kMaxInstances];
92 delete (StaticCounter*) value; in simplyDestroy()
97 store->set(new StaticCounter()); in simpleThreadFunc()
[all …]
Dlazy_instance_unittest.cpp36 class StaticCounter { class
38 StaticCounter() { in StaticCounter() function in emugl::__anone42ca5470111::StaticCounter
56 Mutex StaticCounter::mMutex;
57 int StaticCounter::mCounter = 0;
91 MultiState(LazyInstance<StaticCounter>* staticCounter) : in MultiState()
99 LazyInstance<StaticCounter>* mStaticCounter;
118 LazyInstance<StaticCounter> counter_instance = LAZY_INSTANCE_INIT; in TEST()
136 StaticCounter* expectedValue = counter_instance.ptr(); in TEST()