Home
last modified time | relevance | path

Searched refs:thread_count (Results 1 – 6 of 6) sorted by relevance

/bionic/tests/
Dleak_test.cpp133 const int thread_count = (sysconf(_SC_NPROCESSORS_CONF) > 2) ? 100 : 50; in TEST() local
136 struct thread_data { pthread_barrier_t* barrier; pid_t* tid; } threads[thread_count]; in TEST()
139 ASSERT_EQ(pthread_barrier_init(&barrier, nullptr, thread_count + 1), 0); in TEST()
142 pid_t tids[thread_count]; in TEST()
143 for (int i = 0; i < thread_count; ++i) { in TEST()
159 WaitUntilAllThreadsExited(tids, thread_count); in TEST()
Dstack_protector_test.cpp74 size_t thread_count = 9; in TEST() local
75 for (size_t i = 1; i < thread_count; ++i) { in TEST()
86 ASSERT_EQ(thread_count, checker.tids.size()); in TEST()
Dpthread_test.cpp2660 size_t thread_count; member
2667 BarrierTestHelperData(size_t thread_count, size_t iteration_count) in BarrierTestHelperData()
2668 : thread_count(thread_count), finished_mask(0), serial_thread_count(0), in BarrierTestHelperData()
2688 if (mask == ((1 << arg->data->thread_count) - 1)) { in BarrierTestHelper()
2701 ASSERT_EQ(0, pthread_barrier_init(&data.barrier, nullptr, data.thread_count)); in TEST()
2702 std::vector<pthread_t> threads(data.thread_count); in TEST()
/bionic/benchmarks/
Dget_heap_size_benchmark.cpp37 static std::atomic<int> thread_count; variable
41 thread_count++; in thread_func()
49 thread_count = 0; in BM_mallinfo()
56 while (thread_count != NTHREADS) { in BM_mallinfo()
/bionic/libc/bionic/
Dpthread_cond.cpp156 static int __pthread_cond_pulse(pthread_cond_internal_t* cond, int thread_count) { in __pthread_cond_pulse() argument
169 __futex_wake_ex(&cond->state, cond->process_shared(), thread_count); in __pthread_cond_pulse()
/bionic/tools/versioner/src/
Dversioner.cpp193 size_t thread_count = max_thread_count; in compileHeaders() local
232 thread_count = std::min(thread_count, jobs.size()); in compileHeaders()
234 if (thread_count == 1) { in compileHeaders()
240 for (size_t i = 0; i < thread_count; ++i) { in compileHeaders()