Searched refs:thread_count (Results 1 – 7 of 7) sorted by relevance
/bionic/tests/ |
D | leak_test.cpp | 138 const int thread_count = (sysconf(_SC_NPROCESSORS_CONF) > 2) ? 100 : 50; in TEST() local 141 struct thread_data { pthread_barrier_t* barrier; pid_t* tid; } threads[thread_count]; in TEST() 144 ASSERT_EQ(pthread_barrier_init(&barrier, nullptr, thread_count + 1), 0); in TEST() 147 pid_t tids[thread_count]; in TEST() 148 for (int i = 0; i < thread_count; ++i) { in TEST() 164 WaitUntilAllThreadsExited(tids, thread_count); in TEST()
|
D | stack_protector_test.cpp | 76 size_t thread_count = 9; in TEST() local 77 for (size_t i = 1; i < thread_count; ++i) { in TEST() 88 ASSERT_EQ(thread_count, checker.tids.size()); in TEST()
|
D | time_test.cpp | 806 int thread_count; in GetThreadCount() local 807 if (sscanf(line.c_str(), "Threads: %d", &thread_count) == 1) { in GetThreadCount() 808 return thread_count; in GetThreadCount()
|
D | pthread_test.cpp | 2767 size_t thread_count; member 2774 BarrierTestHelperData(size_t thread_count, size_t iteration_count) in BarrierTestHelperData() 2775 : thread_count(thread_count), finished_mask(0), serial_thread_count(0), in BarrierTestHelperData() 2795 if (mask == ((1 << arg->data->thread_count) - 1)) { in BarrierTestHelper() 2808 ASSERT_EQ(0, pthread_barrier_init(&data.barrier, nullptr, data.thread_count)); in TEST() 2809 std::vector<pthread_t> threads(data.thread_count); in TEST()
|
/bionic/benchmarks/ |
D | get_heap_size_benchmark.cpp | 35 static std::atomic<int> thread_count; variable 39 thread_count++; in thread_func() 47 thread_count = 0; in BM_mallinfo() 54 while (thread_count != NTHREADS) { in BM_mallinfo()
|
/bionic/tools/versioner/src/ |
D | versioner.cpp | 193 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()
|
/bionic/libc/bionic/ |
D | pthread_cond.cpp | 161 static int __pthread_cond_pulse(pthread_cond_internal_t* cond, int thread_count) { in __pthread_cond_pulse() argument 180 __futex_wake_ex(&cond->state, cond->process_shared(), thread_count); in __pthread_cond_pulse()
|