Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 8 of 8) sorted by relevance

/bionic/tests/
D__cxa_atexit_test.cpp44 int counter = 0; in TEST() local
46 __cxa_atexit([](void* arg) { ++*static_cast<int*>(arg); }, &counter, &counter); in TEST()
48 __cxa_finalize(&counter); in TEST()
49 ASSERT_EQ(counter, 1); in TEST()
52 __cxa_finalize(&counter); in TEST()
53 ASSERT_EQ(counter, 1); in TEST()
Dpty_test.cpp89 uint32_t counter = 0; in PtyReader_28979140() local
90 while (counter <= arg->data_count) { in PtyReader_28979140()
92 size_t to_read = std::min(sizeof(buf), (arg->data_count + 1 - counter) * sizeof(uint32_t)); in PtyReader_28979140()
97 if (*p++ != counter++) { in PtyReader_28979140()
154 uint32_t counter = 0; in TEST() local
155 while (counter <= TEST_DATA_COUNT) { in TEST()
157 counter_buf[i] = counter++; in TEST()
160 ASSERT_TRUE(arg.matched) << "failed at count = " << counter; in TEST()
Dtime_test.cpp757 Counter counter(Counter::CountAndDisarmNotifyFunction); in TEST() local
758 ASSERT_EQ(0, counter.Value()); in TEST()
760 counter.SetTime(0, 500000000, 1, 0); in TEST()
764 ASSERT_EQ(1, counter.Value()); in TEST()
768 Counter counter(Counter::CountNotifyFunction); in TEST() local
769 ASSERT_EQ(0, counter.Value()); in TEST()
771 counter.SetTime(0, 1, 0, 10); in TEST()
772 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
773 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
774 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
[all …]
/bionic/benchmarks/
Datomic_benchmark.cpp41 static volatile unsigned counter; variable
42 #define INC_COUNTER() counter = counter + 1
78 int i = counter; in BM_atomic_store_release()
87 int i = counter; in BM_atomic_store_seq_cst()
148 result += counter; in BM_atomic_fetch_add_cs()
/bionic/libc/bionic/
Dpthread_mutex.cpp142 uint16_t counter; member
166 if (mutex.counter == 0xffff) { in PIMutexTryLock()
169 mutex.counter++; in PIMutexTryLock()
211 if (mutex.counter != 0u) { in PIMutexUnlock()
212 --mutex.counter; in PIMutexUnlock()
/bionic/libc/include/arpa/
Dnameser.h266 int counter; member
/bionic/libc/kernel/uapi/linux/
Dbpf.h1275 __u64 counter; member
/bionic/docs/
Delf-tls.md289 need to use an atomic or synchronized access of the global TLS generation counter.