| /freebsd-12.1/lib/libthr/thread/ |
| H A D | thr_join.c | 49 struct pthread *pthread = (struct pthread *)arg; in backout_join() local 52 THR_THREAD_LOCK(curthread, pthread); in backout_join() 53 pthread->joiner = NULL; in backout_join() 88 if (pthread == NULL) in join_common() 91 if (pthread == curthread) in join_common() 99 } else if (pthread->joiner != NULL) { in join_common() 108 pthread->joiner = curthread; in join_common() 115 tid = pthread->tid; in join_common() 138 pthread->joiner = NULL; in join_common() 142 tmp = pthread->ret; in join_common() [all …]
|
| H A D | thr_list.c | 134 struct pthread * 189 _thr_free(struct pthread *curthread, struct pthread *thread) in _thr_free() 236 _thr_link(struct pthread *curthread, struct pthread *thread) in _thr_link() 248 _thr_unlink(struct pthread *curthread, struct pthread *thread) in _thr_unlink() 271 struct pthread * 291 _thr_ref_add(struct pthread *curthread, struct pthread *thread, in _thr_ref_add() 311 _thr_ref_delete(struct pthread *curthread, struct pthread *thread) in _thr_ref_delete() 321 _thr_try_gc(struct pthread *curthread, struct pthread *thread) in _thr_try_gc() 342 _thr_find_thread(struct pthread *curthread, struct pthread *thread, in _thr_find_thread() 345 struct pthread *pthread; in _thr_find_thread() local [all …]
|
| H A D | thr_private.h | 74 struct pthread; 373 struct pthread { struct 792 struct pthread *_thr_alloc(struct pthread *) __hidden; 796 int _thr_ref_add(struct pthread *, struct pthread *, int) __hidden; 797 void _thr_ref_delete(struct pthread *, struct pthread *) __hidden; 799 int _thr_find_thread(struct pthread *, struct pthread *, int) __hidden; 804 void _thr_free(struct pthread *, struct pthread *) __hidden; 822 struct pthread *_thr_hash_find(struct pthread *) __hidden; 823 void _thr_link(struct pthread *, struct pthread *) __hidden; 824 void _thr_unlink(struct pthread *, struct pthread *) __hidden; [all …]
|
| H A D | thr_cancel.c | 50 testcancel(struct pthread *curthread) in testcancel() 58 _thr_testcancel(struct pthread *curthread) in _thr_testcancel() 64 _thr_cancel(pthread_t pthread) in _thr_cancel() argument 66 struct pthread *curthread = _get_curthread(); in _thr_cancel() 75 if (!pthread->cancel_pending) { in _thr_cancel() 76 pthread->cancel_pending = 1; in _thr_cancel() 77 if (pthread->state != PS_DEAD) in _thr_cancel() 78 _thr_send_sig(pthread, SIGCANCEL); in _thr_cancel() 80 THR_THREAD_UNLOCK(curthread, pthread); in _thr_cancel() 141 struct pthread *curthread; in _Tthr_testcancel() [all …]
|
| H A D | thr_setschedparam.c | 53 _pthread_setschedparam(pthread_t pthread, int policy, in _pthread_setschedparam() argument 56 struct pthread *curthread = _get_curthread(); in _pthread_setschedparam() 59 if (pthread == curthread) in _pthread_setschedparam() 61 else if ((ret = _thr_find_thread(curthread, pthread, in _pthread_setschedparam() 64 if (pthread->attr.sched_policy == policy && in _pthread_setschedparam() 66 pthread->attr.prio == param->sched_priority)) { in _pthread_setschedparam() 67 pthread->attr.prio = param->sched_priority; in _pthread_setschedparam() 68 THR_THREAD_UNLOCK(curthread, pthread); in _pthread_setschedparam() 75 pthread->attr.sched_policy = policy; in _pthread_setschedparam() 76 pthread->attr.prio = param->sched_priority; in _pthread_setschedparam() [all …]
|
| H A D | thr_spec.c | 62 struct pthread *curthread; in _thr_key_create() 90 struct pthread *curthread; in _thr_key_delete() 111 struct pthread *curthread; in _thread_cleanupspecific() 173 struct pthread *pthread; in _thr_setspecific() local 182 pthread = _get_curthread(); in _thr_setspecific() 183 if (pthread->specific == NULL) { in _thr_setspecific() 188 pthread->specific = tmp; in _thr_setspecific() 194 pthread->specific_data_count--; in _thr_setspecific() 203 struct pthread *pthread; in _thr_getspecific() local 212 pthread = _get_curthread(); in _thr_getspecific() [all …]
|
| H A D | thr_setprio.c | 44 _pthread_setprio(pthread_t pthread, int prio) in _pthread_setprio() argument 46 struct pthread *curthread = _get_curthread(); in _pthread_setprio() 51 if (pthread == curthread) in _pthread_setprio() 53 else if ((ret = _thr_find_thread(curthread, pthread, /*include dead*/0))) in _pthread_setprio() 55 if (pthread->attr.sched_policy == SCHED_OTHER || in _pthread_setprio() 56 pthread->attr.prio == prio) { in _pthread_setprio() 57 pthread->attr.prio = prio; in _pthread_setprio() 60 ret = _thr_setscheduler(pthread->tid, in _pthread_setprio() 61 pthread->attr.sched_policy, ¶m); in _pthread_setprio() 65 pthread->attr.prio = prio; in _pthread_setprio() [all …]
|
| H A D | thr_detach.c | 45 _thr_detach(pthread_t pthread) in _thr_detach() argument 47 struct pthread *curthread = _get_curthread(); in _thr_detach() 50 if (pthread == NULL) in _thr_detach() 53 if ((rval = _thr_find_thread(curthread, pthread, in _thr_detach() 59 if ((pthread->flags & THR_FLAGS_DETACHED) != 0 || in _thr_detach() 60 (pthread->joiner != NULL)) { in _thr_detach() 61 THR_THREAD_UNLOCK(curthread, pthread); in _thr_detach() 66 pthread->flags |= THR_FLAGS_DETACHED; in _thr_detach() 67 _thr_try_gc(curthread, pthread); /* thread lock released */ in _thr_detach()
|
| H A D | thr_syscalls.c | 103 struct pthread *curthread; in __thr_accept() 121 struct pthread *curthread; in __thr_accept4() 136 struct pthread *curthread; in __thr_aio_suspend() 157 struct pthread *curthread; in __thr_close() 175 struct pthread *curthread; in __thr_connect() 196 struct pthread *curthread; in __thr_fcntl() 221 struct pthread *curthread; in __thr_fsync() 235 struct pthread *curthread; in __thr_fdatasync() 253 struct pthread *curthread; in __thr_msync() 268 struct pthread *curthread; in __thr_clock_nanosleep() [all …]
|
| H A D | thr_symbols.c | 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_kill.c | 47 _Tthr_kill(pthread_t pthread, int sig) in _Tthr_kill() argument 49 struct pthread *curthread; in _Tthr_kill() 64 if (curthread == pthread) { in _Tthr_kill() 66 _thr_send_sig(pthread, sig); in _Tthr_kill() 68 } else if ((ret = _thr_find_thread(curthread, pthread, in _Tthr_kill() 71 _thr_send_sig(pthread, sig); in _Tthr_kill() 72 THR_THREAD_UNLOCK(curthread, pthread); in _Tthr_kill()
|
| H A D | thr_getschedparam.c | 50 _pthread_getschedparam(pthread_t pthread, int * __restrict policy, in _pthread_getschedparam() argument 53 struct pthread *curthread = _get_curthread(); in _pthread_getschedparam() 63 if (pthread == curthread) in _pthread_getschedparam() 65 else if ((ret = _thr_find_thread(curthread, pthread, /*include dead*/0))) in _pthread_getschedparam() 67 *policy = pthread->attr.sched_policy; in _pthread_getschedparam() 68 param->sched_priority = pthread->attr.prio; in _pthread_getschedparam() 69 THR_THREAD_UNLOCK(curthread, pthread); in _pthread_getschedparam()
|
| H A D | thr_malloc.c | 61 thr_malloc_lock(struct pthread *curthread) in thr_malloc_lock() 71 thr_malloc_unlock(struct pthread *curthread) in thr_malloc_unlock() 84 struct pthread *curthread; in __thr_calloc() 97 struct pthread *curthread; in __thr_free() 108 struct pthread *curthread; in __thr_malloc() 121 struct pthread *curthread; in __thr_realloc() 132 __thr_malloc_prefork(struct pthread *curthread) in __thr_malloc_prefork() 139 __thr_malloc_postfork(struct pthread *curthread) in __thr_malloc_postfork()
|
| H A D | thr_suspend_np.c | 43 static int suspend_common(struct pthread *, struct pthread *, 53 struct pthread *curthread = _get_curthread(); in _pthread_suspend_np() 76 _thr_suspend_all_lock(struct pthread *curthread) in _thr_suspend_all_lock() 94 _thr_suspend_all_unlock(struct pthread *curthread) in _thr_suspend_all_unlock() 109 struct pthread *curthread = _get_curthread(); in _pthread_suspend_all_np() 110 struct pthread *thread; in _pthread_suspend_all_np() 162 suspend_common(struct pthread *curthread, struct pthread *thread, in suspend_common()
|
| H A D | thr_resume_np.c | 46 static void resume_common(struct pthread *thread); 52 struct pthread *curthread = _get_curthread(); in _pthread_resume_np() 67 struct pthread *curthread = _get_curthread(); in _pthread_resume_all_np() 68 struct pthread *thread; in _pthread_resume_all_np() 93 resume_common(struct pthread *thread) in resume_common()
|
| H A D | thr_sig.c | 72 static void check_suspend(struct pthread *); 96 _thr_signal_block(struct pthread *curthread) in _thr_signal_block() 108 _thr_signal_unblock(struct pthread *curthread) in _thr_signal_unblock() 115 _thr_send_sig(struct pthread *thread, int sig) in _thr_send_sig() 139 struct pthread *curthread = _get_curthread(); in sigcancel_handler() 159 struct pthread *curthread; in thr_sighandler() 197 struct pthread *curthread = _get_curthread(); in handle_signal() 268 _thr_ast(struct pthread *curthread) in _thr_ast() 354 check_suspend(struct pthread *curthread) in check_suspend() 449 struct pthread *curthread = _get_curthread(); in _thr_sigact_unload() [all …]
|
| H A D | thr_sleepq.c | 83 struct pthread *curthread = _get_curthread(); in _sleepq_lock() 94 struct pthread *curthread = _get_curthread(); in _sleepq_unlock() 118 _sleepq_add(void *wchan, struct pthread *td) in _sleepq_add() 142 _sleepq_remove(struct sleepqueue *sq, struct pthread *td) in _sleepq_remove() 162 void (*cb)(struct pthread *, void *arg), void *arg) in _sleepq_drop() argument 164 struct pthread *td; in _sleepq_drop()
|
| H A D | thr_pshared.c | 65 pshared_rlock(struct pthread *curthread) in pshared_rlock() 73 pshared_wlock(struct pthread *curthread) in pshared_wlock() 81 pshared_unlock(struct pthread *curthread) in pshared_unlock() 100 pshared_gc(struct pthread *curthread) in pshared_gc() 214 struct pthread *curthread; in __thr_pshared_offpage() 245 struct pthread *curthread; in __thr_pshared_destroy()
|
| H A D | thr_info.c | 51 thr_set_name_np(struct pthread *thread, const char *name) in thr_set_name_np() 62 struct pthread *curthread; in _pthread_set_name_np() 82 thr_get_name_np(struct pthread *thread, char *buf, size_t len) in thr_get_name_np() 96 struct pthread *curthread; in _pthread_get_name_np()
|
| /freebsd-12.1/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-12.1/contrib/googletest/googletest/m4/ |
| H A D | acx_pthread.m4 | 69 # We used to check for pthread.h first, but this fails if pthread.h 102 …ags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -m… 120 # pthread: Linux, etcetera 122 # pthread-config: use pthread-config program (for GNU Pth library) 135 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 152 pthread-config) 156 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 179 AC_TRY_LINK([#include <pthread.h>], 283 AC_TRY_LINK([#include <pthread.h>], 303 AC_TRY_LINK([#include <pthread.h>], [all …]
|
| /freebsd-12.1/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-12.1/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-12.1/contrib/unbound/ |
| H A D | ax_pthread.m4 | 93 # We used to check for pthread.h first, but this fails if pthread.h 126 …ags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -m… 144 # pthread: Linux, etcetera 146 # pthread-config: use pthread-config program (for GNU Pth library) 159 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 163 ax_pthread_flags="-pthread $ax_pthread_flags" 194 pthread-config) 197 PTHREAD_CFLAGS="`pthread-config --cflags`" 198 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 221 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h> [all …]
|
| /freebsd-12.1/share/mk/ |
| H A D | src.libnames.mk | 155 pthread \ 235 _DP_zstd= pthread 239 _DP_crypto= pthread 245 _DP_sqlite3= pthread 270 _DP_usb= pthread 272 _DP_rt= pthread 305 _DP_cuse= pthread 307 _DP_gtest= pthread 337 _DP_lzma= pthread 376 _DP_osmcomp= pthread [all …]
|