| /freebsd-14.2/lib/libthr/thread/ |
| H A D | thr_join.c | 48 struct pthread *pthread = (struct pthread *)arg; in backout_join() local 51 THR_THREAD_LOCK(curthread, pthread); in backout_join() 52 pthread->joiner = NULL; in backout_join() 93 if (pthread == NULL) in join_common() 96 if (pthread == curthread) in join_common() 118 *thread_return = pthread->ret; in join_common() 124 pthread->joiner = curthread; in join_common() 131 tid = pthread->tid; in join_common() 154 pthread->joiner = NULL; in join_common() 158 tmp = pthread->ret; in join_common() [all …]
|
| H A D | thr_list.c | 132 struct pthread * 187 _thr_free(struct pthread *curthread, struct pthread *thread) in _thr_free() 234 _thr_link(struct pthread *curthread, struct pthread *thread) in _thr_link() 246 _thr_unlink(struct pthread *curthread, struct pthread *thread) in _thr_unlink() 269 struct pthread * 289 _thr_ref_add(struct pthread *curthread, struct pthread *thread, in _thr_ref_add() 309 _thr_ref_delete(struct pthread *curthread, struct pthread *thread) in _thr_ref_delete() 319 _thr_try_gc(struct pthread *curthread, struct pthread *thread) in _thr_try_gc() 340 _thr_find_thread(struct pthread *curthread, struct pthread *thread, in _thr_find_thread() 343 struct pthread *pthread; in _thr_find_thread() local [all …]
|
| H A D | thr_private.h | 71 struct pthread; 368 struct pthread { struct 796 struct pthread *_thr_alloc(struct pthread *) __hidden; 800 int _thr_ref_add(struct pthread *, struct pthread *, int) __hidden; 801 void _thr_ref_delete(struct pthread *, struct pthread *) __hidden; 803 int _thr_find_thread(struct pthread *, struct pthread *, int) __hidden; 808 void _thr_free(struct pthread *, struct pthread *) __hidden; 828 struct pthread *_thr_hash_find(struct pthread *) __hidden; 829 void _thr_link(struct pthread *, struct pthread *) __hidden; 830 void _thr_unlink(struct pthread *, struct pthread *) __hidden; [all …]
|
| H A D | thr_setschedparam.c | 50 _pthread_setschedparam(pthread_t pthread, int policy, in _pthread_setschedparam() argument 53 struct pthread *curthread = _get_curthread(); in _pthread_setschedparam() 56 if (pthread == curthread) in _pthread_setschedparam() 58 else if ((ret = _thr_find_thread(curthread, pthread, in _pthread_setschedparam() 61 if (pthread->attr.sched_policy == policy && in _pthread_setschedparam() 63 pthread->attr.prio == param->sched_priority)) { in _pthread_setschedparam() 64 pthread->attr.prio = param->sched_priority; in _pthread_setschedparam() 65 THR_THREAD_UNLOCK(curthread, pthread); in _pthread_setschedparam() 72 pthread->attr.sched_policy = policy; in _pthread_setschedparam() 73 pthread->attr.prio = param->sched_priority; in _pthread_setschedparam() [all …]
|
| H A D | thr_cancel.c | 47 testcancel(struct pthread *curthread) in testcancel() 55 _thr_testcancel(struct pthread *curthread) in _thr_testcancel() 61 _thr_cancel(pthread_t pthread) in _thr_cancel() argument 63 struct pthread *curthread = _get_curthread(); in _thr_cancel() 72 if (!pthread->cancel_pending) { in _thr_cancel() 73 pthread->cancel_pending = 1; in _thr_cancel() 74 if (pthread->state != PS_DEAD) in _thr_cancel() 75 _thr_send_sig(pthread, SIGCANCEL); in _thr_cancel() 77 THR_THREAD_UNLOCK(curthread, pthread); in _thr_cancel() 138 struct pthread *curthread; in _Tthr_testcancel() [all …]
|
| H A D | thr_setprio.c | 41 _pthread_setprio(pthread_t pthread, int prio) in _pthread_setprio() argument 43 struct pthread *curthread = _get_curthread(); in _pthread_setprio() 48 if (pthread == curthread) in _pthread_setprio() 50 else if ((ret = _thr_find_thread(curthread, pthread, /*include dead*/0))) in _pthread_setprio() 52 if (pthread->attr.sched_policy == SCHED_OTHER || in _pthread_setprio() 53 pthread->attr.prio == prio) { in _pthread_setprio() 54 pthread->attr.prio = prio; in _pthread_setprio() 57 ret = _thr_setscheduler(pthread->tid, in _pthread_setprio() 58 pthread->attr.sched_policy, ¶m); in _pthread_setprio() 62 pthread->attr.prio = prio; in _pthread_setprio() [all …]
|
| H A D | thr_spec.c | 59 struct pthread *curthread; in _thr_key_create() 87 struct pthread *curthread; in _thr_key_delete() 108 struct pthread *curthread; in _thread_cleanupspecific() 170 struct pthread *pthread; in _thr_setspecific() local 179 pthread = _get_curthread(); in _thr_setspecific() 180 if (pthread->specific == NULL) { in _thr_setspecific() 185 pthread->specific = tmp; in _thr_setspecific() 191 pthread->specific_data_count--; in _thr_setspecific() 200 struct pthread *pthread; in _thr_getspecific() local 209 pthread = _get_curthread(); in _thr_getspecific() [all …]
|
| H A D | thr_detach.c | 42 _thr_detach(pthread_t pthread) in _thr_detach() argument 44 struct pthread *curthread = _get_curthread(); in _thr_detach() 47 if (pthread == NULL) in _thr_detach() 50 if ((rval = _thr_find_thread(curthread, pthread, in _thr_detach() 56 if ((pthread->flags & THR_FLAGS_DETACHED) != 0 || in _thr_detach() 57 (pthread->joiner != NULL)) { in _thr_detach() 58 THR_THREAD_UNLOCK(curthread, pthread); in _thr_detach() 63 pthread->flags |= THR_FLAGS_DETACHED; in _thr_detach() 64 _thr_try_gc(curthread, pthread); /* thread lock released */ in _thr_detach()
|
| H A D | thr_syscalls.c | 100 struct pthread *curthread; in __thr_accept() 118 struct pthread *curthread; in __thr_accept4() 133 struct pthread *curthread; in __thr_aio_suspend() 154 struct pthread *curthread; in __thr_close() 172 struct pthread *curthread; in __thr_connect() 193 struct pthread *curthread; in __thr_fcntl() 218 struct pthread *curthread; in __thr_fsync() 232 struct pthread *curthread; in __thr_fdatasync() 250 struct pthread *curthread; in __thr_msync() 265 struct pthread *curthread; in __thr_clock_nanosleep() [all …]
|
| H A D | thr_symbols.c | 43 int _thread_off_tcb = offsetof(struct pthread, tcb); 44 int _thread_off_tid = offsetof(struct pthread, tid); 45 int _thread_off_next = offsetof(struct pthread, tle.tqe_next); 46 int _thread_off_attr_flags = offsetof(struct pthread, attr.flags); 49 int _thread_off_report_events = offsetof(struct pthread, report_events); 50 int _thread_off_event_mask = offsetof(struct pthread, event_mask); 51 int _thread_off_event_buf = offsetof(struct pthread, event_buf); 57 int _thread_off_state = offsetof(struct pthread, state);
|
| H A D | thr_kill.c | 44 _Tthr_kill(pthread_t pthread, int sig) in _Tthr_kill() argument 46 struct pthread *curthread; in _Tthr_kill() 61 if (curthread == pthread) { in _Tthr_kill() 63 _thr_send_sig(pthread, sig); in _Tthr_kill() 65 } else if ((ret = _thr_find_thread(curthread, pthread, in _Tthr_kill() 68 _thr_send_sig(pthread, sig); in _Tthr_kill() 69 THR_THREAD_UNLOCK(curthread, pthread); in _Tthr_kill()
|
| H A D | thr_getschedparam.c | 47 _pthread_getschedparam(pthread_t pthread, int * __restrict policy, in _pthread_getschedparam() argument 50 struct pthread *curthread = _get_curthread(); in _pthread_getschedparam() 60 if (pthread == curthread) in _pthread_getschedparam() 62 else if ((ret = _thr_find_thread(curthread, pthread, /*include dead*/0))) in _pthread_getschedparam() 64 *policy = pthread->attr.sched_policy; in _pthread_getschedparam() 65 param->sched_priority = pthread->attr.prio; in _pthread_getschedparam() 66 THR_THREAD_UNLOCK(curthread, pthread); in _pthread_getschedparam()
|
| H A D | thr_sigqueue.c | 49 _Tthr_sigqueue(pthread_t pthread, int sig, const union sigval value) in _Tthr_sigqueue() argument 51 struct pthread *curthread; in _Tthr_sigqueue() 60 if (curthread == pthread) { in _Tthr_sigqueue() 62 e = sigqueue(pthread->tid, sig | __SIGQUEUE_TID, in _Tthr_sigqueue() 67 } else if ((ret = _thr_find_thread(curthread, pthread, in _Tthr_sigqueue() 70 e = sigqueue(pthread->tid, sig | __SIGQUEUE_TID, in _Tthr_sigqueue() 75 THR_THREAD_UNLOCK(curthread, pthread); in _Tthr_sigqueue()
|
| H A D | thr_malloc.c | 58 thr_malloc_lock(struct pthread *curthread) in thr_malloc_lock() 73 thr_malloc_unlock(struct pthread *curthread) in thr_malloc_unlock() 89 struct pthread *curthread; in __thr_calloc() 102 struct pthread *curthread; in __thr_free() 113 struct pthread *curthread; in __thr_malloc() 126 struct pthread *curthread; in __thr_realloc() 137 __thr_malloc_prefork(struct pthread *curthread) in __thr_malloc_prefork() 144 __thr_malloc_postfork(struct pthread *curthread) in __thr_malloc_postfork()
|
| H A D | thr_suspend_np.c | 40 static int suspend_common(struct pthread *, struct pthread *, 50 struct pthread *curthread = _get_curthread(); in _pthread_suspend_np() 73 _thr_suspend_all_lock(struct pthread *curthread) in _thr_suspend_all_lock() 91 _thr_suspend_all_unlock(struct pthread *curthread) in _thr_suspend_all_unlock() 106 struct pthread *curthread = _get_curthread(); in _pthread_suspend_all_np() 107 struct pthread *thread; in _pthread_suspend_all_np() 159 suspend_common(struct pthread *curthread, struct pthread *thread, in suspend_common()
|
| H A D | thr_sig.c | 70 static void check_suspend(struct pthread *); 94 thr_signal_block_slow(struct pthread *curthread) in thr_signal_block_slow() 130 _thr_signal_block(struct pthread *curthread) in _thr_signal_block() 139 _thr_signal_unblock(struct pthread *curthread) in _thr_signal_unblock() 167 _thr_send_sig(struct pthread *thread, int sig) in _thr_send_sig() 191 struct pthread *curthread = _get_curthread(); in sigcancel_handler() 211 struct pthread *curthread; in thr_sighandler() 249 struct pthread *curthread = _get_curthread(); in handle_signal() 320 _thr_ast(struct pthread *curthread) in _thr_ast() 406 check_suspend(struct pthread *curthread) in check_suspend() [all …]
|
| H A D | thr_resume_np.c | 43 static void resume_common(struct pthread *thread); 49 struct pthread *curthread = _get_curthread(); in _pthread_resume_np() 64 struct pthread *curthread = _get_curthread(); in _pthread_resume_all_np() 65 struct pthread *thread; in _pthread_resume_all_np() 90 resume_common(struct pthread *thread) in resume_common()
|
| H A D | thr_pshared.c | 68 pshared_rlock(struct pthread *curthread) in pshared_rlock() 76 pshared_wlock(struct pthread *curthread) in pshared_wlock() 84 pshared_unlock(struct pthread *curthread) in pshared_unlock() 103 pshared_gc(struct pthread *curthread) in pshared_gc() 215 pshared_destroy(struct pthread *curthread, void *key) in pshared_destroy() 228 struct pthread *curthread; in __thr_pshared_offpage() 264 struct pthread *curthread; in __thr_pshared_destroy()
|
| H A D | thr_rtld.c | 112 struct pthread *curthread; in _thr_rtld_rlock_acquire() 130 struct pthread *curthread; in _thr_rtld_wlock_acquire() 147 struct pthread *curthread; in _thr_rtld_lock_release() 202 struct pthread *curthread; in _thr_dlerror_loc() 211 struct pthread *curthread; in _thr_dlerror_seen() 221 struct pthread *curthread; in _thr_rtld_init()
|
| /freebsd-14.2/sys/contrib/libsodium/m4/ |
| H A D | ax_pthread.m4 | 95 # We used to check for pthread.h first, but this fails if pthread.h 131 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pth… 149 # pthread: Linux, etcetera 151 # pthread-config: use pthread-config program (for GNU Pth library) 168 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 197 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 264 PTHREAD_CFLAGS="-pthread" 331 -mt,pthread) 342 pthread-config) 346 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" [all …]
|
| /freebsd-14.2/contrib/unbound/ |
| H A D | ax_pthread.m4 | 100 # We used to check for pthread.h first, but this fails if pthread.h 139 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pth… 157 # pthread: Linux, etcetera 159 # pthread-config: use pthread-config program (for GNU Pth library) 176 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 239 [ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"]) 244 [ax_pthread_flags="-pthread,-lpthread -pthread"]) 288 pthread-config) 291 PTHREAD_CFLAGS="`pthread-config --cflags`" 292 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" [all …]
|
| /freebsd-14.2/contrib/ntp/sntp/libevent/m4/ |
| H A D | acx_pthread.m4 | 92 # We used to check for pthread.h first, but this fails if pthread.h 125 …ags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -m… 143 # pthread: Linux, etcetera 145 # pthread-config: use pthread-config program (for GNU Pth library) 158 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 175 pthread-config) 176 AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no) 178 PTHREAD_CFLAGS="`pthread-config --cflags`" 179 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 202 AC_TRY_LINK([#include <pthread.h>], [all …]
|
| /freebsd-14.2/contrib/libevent/m4/ |
| H A D | acx_pthread.m4 | 92 # We used to check for pthread.h first, but this fails if pthread.h 125 …ags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -m… 143 # pthread: Linux, etcetera 145 # pthread-config: use pthread-config program (for GNU Pth library) 158 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 175 pthread-config) 176 AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no) 178 PTHREAD_CFLAGS="`pthread-config --cflags`" 179 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 202 AC_TRY_LINK([#include <pthread.h>], [all …]
|
| /freebsd-14.2/tests/sys/kern/ |
| H A D | Makefile | 75 LIBADD.sys_getrandom+= pthread 76 LIBADD.ptrace_test+= pthread 77 LIBADD.unix_seqpacket_test+= pthread 78 LIBADD.kcov+= pthread 81 LIBADD.socket_msg_waitall+= pthread 82 LIBADD.socket_splice+= pthread 83 LIBADD.sendfile_helper+= pthread 84 LIBADD.fdgrowtable_test+= util pthread kvm procstat
|
| /freebsd-14.2/share/mk/ |
| H A D | src.libnames.mk | 189 pthread \ 286 _DP_zstd= pthread 290 _DP_crypto= pthread 299 _DP_sqlite3= pthread 323 _DP_usb= pthread 325 _DP_rt= pthread 354 _DP_cuse= pthread 381 _DP_heimbase= pthread 387 _DP_lzma= md pthread 441 _DP_osmcomp= pthread [all …]
|