/freebsd-13-stable/lib/libthr/thread/ |
H A D | thr_join.c | 34 #include <pthread.h> 39 int _pthread_peekjoin_np(pthread_t pthread, void **thread_return); 40 int _pthread_timedjoin_np(pthread_t pthread, void **thread_return, 51 struct pthread *pthread = (struct pthread *)arg; local 52 struct pthread *curthread = _get_curthread(); 54 THR_THREAD_LOCK(curthread, pthread); 55 pthread->joiner = NULL; 56 THR_THREAD_UNLOCK(curthread, pthread); 60 _thr_join(pthread_t pthread, void **thread_return) argument 66 _pthread_timedjoin_np(pthread_t pthread, void **thread_return, const struct timespec *abstime) argument 77 _pthread_peekjoin_np(pthread_t pthread, void **thread_return) argument 87 join_common(pthread_t pthread, void **thread_return, const struct timespec *abstime, bool peek) argument [all...] |
H A D | thr_detach.c | 36 #include <pthread.h> 45 _thr_detach(pthread_t pthread) argument 47 struct pthread *curthread = _get_curthread(); 50 if (pthread == NULL) 53 if ((rval = _thr_find_thread(curthread, pthread, 59 if ((pthread->flags & THR_FLAGS_DETACHED) != 0 || 60 (pthread->joiner != NULL)) { 61 THR_THREAD_UNLOCK(curthread, pthread); 66 pthread->flags |= THR_FLAGS_DETACHED; 67 _thr_try_gc(curthread, pthread); /* threa [all...] |
H A D | thr_setschedparam.c | 41 #include <pthread.h> 53 _pthread_setschedparam(pthread_t pthread, int policy, argument 56 struct pthread *curthread = _get_curthread(); 59 if (pthread == curthread) 61 else if ((ret = _thr_find_thread(curthread, pthread, 64 if (pthread->attr.sched_policy == policy && 66 pthread->attr.prio == param->sched_priority)) { 67 pthread->attr.prio = param->sched_priority; 68 THR_THREAD_UNLOCK(curthread, pthread); 71 ret = _thr_setscheduler(pthread [all...] |
H A D | thr_setprio.c | 36 #include <pthread.h> 44 _pthread_setprio(pthread_t pthread, int prio) argument 46 struct pthread *curthread = _get_curthread(); 51 if (pthread == curthread) 53 else if ((ret = _thr_find_thread(curthread, pthread, /*include dead*/0))) 55 if (pthread->attr.sched_policy == SCHED_OTHER || 56 pthread->attr.prio == prio) { 57 pthread->attr.prio = prio; 60 ret = _thr_setscheduler(pthread->tid, 61 pthread [all...] |
H A D | thr_getschedparam.c | 42 #include <pthread.h> 50 _pthread_getschedparam(pthread_t pthread, int * __restrict policy, argument 53 struct pthread *curthread = _get_curthread(); 63 if (pthread == curthread) 65 else if ((ret = _thr_find_thread(curthread, pthread, /*include dead*/0))) 67 *policy = pthread->attr.sched_policy; 68 param->sched_priority = pthread->attr.prio; 69 THR_THREAD_UNLOCK(curthread, pthread);
|
H A D | thr_kill.c | 38 #include <pthread.h> 47 _Tthr_kill(pthread_t pthread, int sig) argument 49 struct pthread *curthread; 64 if (curthread == pthread) { 66 _thr_send_sig(pthread, sig); 68 } else if ((ret = _thr_find_thread(curthread, pthread, 71 _thr_send_sig(pthread, sig); 72 THR_THREAD_UNLOCK(curthread, pthread);
|
H A D | thr_getcpuclockid.c | 34 #include <pthread.h> 43 _pthread_getcpuclockid(pthread_t pthread, clockid_t *clock_id) argument 46 if (pthread == NULL) 49 if (clock_getcpuclockid2(TID(pthread), CPUCLOCK_WHICH_TID, clock_id))
|
H A D | thr_symbols.c | 37 #include <pthread.h> 45 int _thread_off_tcb = offsetof(struct pthread, tcb); 46 int _thread_off_tid = offsetof(struct pthread, tid); 47 int _thread_off_next = offsetof(struct pthread, tle.tqe_next); 48 int _thread_off_attr_flags = offsetof(struct pthread, attr.flags); 51 int _thread_off_report_events = offsetof(struct pthread, report_events); 52 int _thread_off_event_mask = offsetof(struct pthread, event_mask); 53 int _thread_off_event_buf = offsetof(struct pthread, event_buf); 59 int _thread_off_state = offsetof(struct pthread, state);
|
H A D | thr_getprio.c | 37 #include <pthread.h> 44 _pthread_getprio(pthread_t pthread) argument 49 if ((ret = _pthread_getschedparam(pthread, &policy, ¶m)) == 0)
|
H A D | thr_list.c | 38 #include <pthread.h> 65 static TAILQ_HEAD(, pthread) free_threadq; 72 LIST_HEAD(thread_hash_head, pthread); 77 static void thr_destroy(struct pthread *curthread, struct pthread *thread); 99 _thr_gc(struct pthread *curthread) 101 struct pthread *td, *td_next; 102 TAILQ_HEAD(, pthread) worklist; 134 struct pthread * 135 _thr_alloc(struct pthread *curthrea 345 struct pthread *pthread; local [all...] |
H A D | thr_cancel.c | 33 #include <pthread.h> 50 testcancel(struct pthread *curthread) 58 _thr_testcancel(struct pthread *curthread) 64 _thr_cancel(pthread_t pthread) argument 66 struct pthread *curthread = _get_curthread(); 74 if ((ret = _thr_find_thread(curthread, pthread, 1)) == 0) { 75 if (!pthread->cancel_pending) { 76 pthread->cancel_pending = 1; 77 if (pthread->state != PS_DEAD) 78 _thr_send_sig(pthread, SIGCANCE [all...] |
/freebsd-13-stable/contrib/sendmail/include/libmilter/ |
H A D | milter.h | 24 # include <pthread.h>
|
/freebsd-13-stable/lib/libc/gdtoa/ |
H A D | glue.c | 8 #include <pthread.h>
|
/freebsd-13-stable/lib/libnetbsd/ |
H A D | pthread.h | 33 #include_next <pthread.h>
|
/freebsd-13-stable/tools/tools/mctest/ |
H A D | Makefile | 4 LIBADD= pthread
|
/freebsd-13-stable/tools/tools/netrate/http/ |
H A D | Makefile | 5 LIBADD= pthread
|
/freebsd-13-stable/tools/tools/netrate/httpd/ |
H A D | Makefile | 6 LIBADD= pthread
|
/freebsd-13-stable/tools/tools/netrate/juggle/ |
H A D | Makefile | 6 LIBADD= pthread
|
/freebsd-13-stable/tools/tools/tscdrift/ |
H A D | Makefile | 6 LIBADD= pthread m
|
/freebsd-13-stable/tools/regression/gaithrstress/ |
H A D | Makefile | 4 LIBADD= pthread
|
/freebsd-13-stable/tools/regression/pthread/cv_cancel1/ |
H A D | Makefile | 5 LIBADD= pthread
|
/freebsd-13-stable/tools/regression/pthread/mutex_isowned_np/ |
H A D | Makefile | 5 LIBADD= pthread
|
/freebsd-13-stable/lib/libc/gen/ |
H A D | __pthread_mutex_init_calloc_cb_stub.c | 36 #include <pthread.h>
|
/freebsd-13-stable/lib/libc/iconv/ |
H A D | citrus_lock.h | 30 #include <pthread.h>
|
/freebsd-13-stable/lib/libc/tests/setjmp/ |
H A D | Makefile | 6 LIBADD.t_threadjmp+= pthread
|