Lines Matching defs:threads
38 char threads[SIZES_COUNT][MAX_TID_LEN + 1];
81 snprintf(test_results.threads[0], MAX_TID_LEN, "%d", (pid_t) syscall(__NR_gettid));
115 pthread_t threads[SIZES_COUNT];
117 pthread_create(&threads[i], NULL, allocate_wait_free, &thread_data[i]);
122 snprintf(test_results.threads[i], MAX_TID_LEN, "%d", thread_data[i].self_id);
128 pthread_join(threads[i], NULL);
148 populate_thread_stats(test_results->stats_before_allocations, test_results->threads[0], &stats_before_allocations);
149 populate_thread_stats(test_results->stats_after_allocations, test_results->threads[0], &stats_after_allocations);
150 populate_thread_stats(test_results->stats_after_free, test_results->threads[0], &stats_after_free);
174 result &= populate_thread_stats(test_results->stats_after_allocations, test_results->threads[i], &thread_stats);
176 if (is_thread_in_output(test_results->stats_after_free, test_results->threads[i])) {
177 t_error("Thread %s did not disappear from output\n", test_results->threads[i]);
219 "Testing allocations in different threads");