Home
last modified time | relevance | path

Searched refs:threads (Results 1 – 10 of 10) sorted by relevance

/system/core/toolbox/
Dtop.c89 static int max_procs, delay, iterations, threads; variable
161 if (!strcmp(argv[i], "-t")) { threads = 1; continue; } in top_main()
171 if (threads && proc_cmp == &proc_thr_cmp) { in top_main()
236 new_procs = calloc(INIT_PROCS * (threads ? THREAD_MULT : 1), sizeof(struct proc_info *)); in read_procs()
237 num_new_procs = INIT_PROCS * (threads ? THREAD_MULT : 1); in read_procs()
254 if (!threads) { in read_procs()
289 if (threads) { in read_procs()
313 if (!threads) in read_procs()
460 if (!threads) in print_procs()
477 if (!threads) { in print_procs()
Dps.c269 int threads = 0; in ps_main() local
276 threads = 1; in ps_main()
319 if(threads) ps_threads(pid, namefilter); in ps_main()
/system/core/libsync/
Dsync_test.c79 pthread_t threads[4]; in main() local
119 pthread_create(&threads[i], NULL, sync_thread, &sync_data[i]); in main()
143 pthread_join(threads[i], &val); in main()
/system/core/adb/
Dsysdeps_win32.cpp1525 WaitForAllParam* threads; in _wait_for_all() local
1544 threads = (WaitForAllParam*)malloc((chunks + (remains ? 1 : 0)) * in _wait_for_all()
1546 if (threads == NULL) { in _wait_for_all()
1556 free(threads); in _wait_for_all()
1565 threads[chunk].main_event = main_event; in _wait_for_all()
1566 threads[chunk].signaled_index = &sig_index; in _wait_for_all()
1567 threads[chunk].first_handle_index = WAIT_ALL_CHUNK_SIZE * chunk; in _wait_for_all()
1568 threads[chunk].handles = handles + threads[chunk].first_handle_index; in _wait_for_all()
1569 threads[chunk].handles_count = WAIT_ALL_CHUNK_SIZE; in _wait_for_all()
1572 threads[chunk].main_event = main_event; in _wait_for_all()
[all …]
Dprotocol.txt197 The core of the bridge program will use three threads. One thread
201 The remote side connection will be implemented as two threads (one for
/system/extras/tests/memtest/
Dbandwidth.cpp258 pthread_t threads[num_threads]; in runThreadedTest() local
264 rc = pthread_create(&threads[i], NULL, runBandwidthThread, in runThreadedTest()
283 rc = pthread_join(threads[i], NULL); in runThreadedTest()
/system/core/libsync/tests/
Dsync_test.cpp483 vector<thread> threads; in TEST_P() local
513 threads.push_back(thread{threadMain, i}); in TEST_P()
542 for_each(begin(threads), end(threads), [](thread& thread) { thread.join(); }); in TEST_P()
/system/core/libbacktrace/
Dbacktrace_test.cpp402 void GetThreads(pid_t pid, std::vector<pid_t>* threads) { in GetThreads() argument
414 threads->push_back(tid); in GetThreads()
436 std::vector<pid_t> threads; in TEST() local
440 threads.clear(); in TEST()
441 GetThreads(pid, &threads); in TEST()
442 } while ((threads.size() != NUM_PTRACE_THREADS + 1) && in TEST()
444 ASSERT_EQ(threads.size(), static_cast<size_t>(NUM_PTRACE_THREADS + 1)); in TEST()
448 for (std::vector<int>::const_iterator it = threads.begin(); it != threads.end(); ++it) { in TEST()
/system/core/libcutils/
DAndroid.mk31 threads.c \
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
Devent.h198 struct thread_map *threads,