Lines Matching defs:pthread
38 #include <pthread.h>
47 static void dump_thread(int fd, pthread_t pthread, int long_version);
77 pthread_t pthread;
81 snprintf(tempfile, sizeof(tempfile), "/tmp/pthread.dump.%u.%i",
109 TAILQ_FOREACH(pthread, &_thread_list, tle) {
110 if (pthread->state != PS_DEAD)
111 dump_thread(fd, pthread, /*long_verson*/ 1);
137 dump_thread(int fd, pthread_t pthread, int long_version)
139 struct pthread *curthread = _get_curthread();
145 if (thread_info[i].state == pthread->state)
152 pthread, (pthread->name == NULL) ? "" : pthread->name,
153 pthread->attr.flags & PTHREAD_SCOPE_SYSTEM ? "system" : "process",
154 pthread->active_priority, (pthread->blocked != 0) ? "yes" : "no",
155 thread_info[i].name, pthread->fname, pthread->lineno);
160 if (pthread == curthread) {
166 if (pthread == _thr_initial) {
173 switch (pthread->state) {
179 pthread->sigmask.__bits[i]);
189 pthread->data.sigwait->waitset->__bits[i]);
204 pthread->sigmask.__bits[i]);
218 struct pthread *curthread = _get_curthread();