Searched refs:pthreads (Results 1 – 5 of 5) sorted by relevance
746 static int pyrf_thread_map__init(struct pyrf_thread_map *pthreads, in pyrf_thread_map__init() argument756 pthreads->threads = thread_map__new(pid, tid, uid); in pyrf_thread_map__init()757 if (pthreads->threads == NULL) in pyrf_thread_map__init()762 static void pyrf_thread_map__delete(struct pyrf_thread_map *pthreads) in pyrf_thread_map__delete() argument764 perf_thread_map__put(pthreads->threads); in pyrf_thread_map__delete()765 Py_TYPE(pthreads)->tp_free((PyObject*)pthreads); in pyrf_thread_map__delete()770 struct pyrf_thread_map *pthreads = (void *)obj; in pyrf_thread_map__length() local772 return perf_thread_map__nr(pthreads->threads); in pyrf_thread_map__length()777 struct pyrf_thread_map *pthreads = (void *)obj; in pyrf_thread_map__item() local779 if (i >= perf_thread_map__nr(pthreads->threads)) in pyrf_thread_map__item()[all …]
18 为实现更多高级接口的方式,如pthreads。
1354 pthread_t *pthreads; in worker_process() local1373 pthreads = zalloc(g->p.nr_threads * sizeof(pthread_t)); in worker_process()1393 ret = pthread_create(pthreads + t, NULL, worker_thread, td); in worker_process()1398 ret = pthread_join(pthreads[t], NULL); in worker_process()1403 free(pthreads); in worker_process()
12 as a means to implement more high level interfaces like pthreads.
424 Familiar tools like GDB and pthreads can be used to develop and debug