Searched refs:pthreads (Results 1 – 2 of 2) sorted by relevance
643 static int pyrf_thread_map__init(struct pyrf_thread_map *pthreads, in pyrf_thread_map__init() argument653 pthreads->threads = thread_map__new(pid, tid, uid); in pyrf_thread_map__init()654 if (pthreads->threads == NULL) in pyrf_thread_map__init()659 static void pyrf_thread_map__delete(struct pyrf_thread_map *pthreads) in pyrf_thread_map__delete() argument661 perf_thread_map__put(pthreads->threads); in pyrf_thread_map__delete()662 Py_TYPE(pthreads)->tp_free((PyObject*)pthreads); in pyrf_thread_map__delete()667 struct pyrf_thread_map *pthreads = (void *)obj; in pyrf_thread_map__length() local669 return pthreads->threads->nr; in pyrf_thread_map__length()674 struct pyrf_thread_map *pthreads = (void *)obj; in pyrf_thread_map__item() local676 if (i >= pthreads->threads->nr) in pyrf_thread_map__item()[all …]
1304 pthread_t *pthreads; in worker_process() local1323 pthreads = zalloc(g->p.nr_threads * sizeof(pthread_t)); in worker_process()1343 ret = pthread_create(pthreads + t, NULL, worker_thread, td); in worker_process()1348 ret = pthread_join(pthreads[t], NULL); in worker_process()1353 free(pthreads); in worker_process()