Home
last modified time | relevance | path

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

/bionic/benchmarks/
Datomic_benchmark.cpp40 static volatile unsigned counter; variable
50 ++counter; in BM_atomic_empty()
59 ++counter; in BM_atomic_load_relaxed()
69 ++counter; in BM_atomic_load_acquire()
76 int i = counter; in BM_atomic_store_release()
79 ++counter; in BM_atomic_store_release()
85 int i = counter; in BM_atomic_store_seq_cst()
88 ++counter; in BM_atomic_store_seq_cst()
97 ++counter; in BM_atomic_fetch_add_relaxed()
107 ++counter; in BM_atomic_fetch_add_seq_cst()
[all …]
/bionic/tests/
D__cxa_atexit_test.cpp33 int counter = 0; in TEST() local
35 __cxxabiv1::__cxa_atexit([](void* arg) { ++*static_cast<int*>(arg); }, &counter, &counter); in TEST()
37 __cxxabiv1::__cxa_finalize(&counter); in TEST()
38 ASSERT_EQ(counter, 1); in TEST()
41 __cxxabiv1::__cxa_finalize(&counter); in TEST()
42 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.cpp496 Counter counter(Counter::CountAndDisarmNotifyFunction); in TEST() local
497 ASSERT_EQ(0, counter.Value()); in TEST()
499 counter.SetTime(0, 500000000, 1, 0); in TEST()
503 ASSERT_EQ(1, counter.Value()); in TEST()
507 Counter counter(Counter::CountNotifyFunction); in TEST() local
508 ASSERT_EQ(0, counter.Value()); in TEST()
510 counter.SetTime(0, 1, 0, 10); in TEST()
511 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
512 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
513 ASSERT_TRUE(counter.ValueUpdated()); in TEST()
[all …]
/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.h264 int counter; member
/bionic/libc/kernel/uapi/linux/
Dbpf.h783 __u64 counter; member
/bionic/docs/
Delf-tls.md289 need to use an atomic or synchronized access of the global TLS generation counter.