Home
last modified time | relevance | path

Searched refs:pthread (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/freebsd-13.1/lib/libthr/thread/
H A Dthr_join.c51 struct pthread *pthread = (struct pthread *)arg; in backout_join() local
54 THR_THREAD_LOCK(curthread, pthread); in backout_join()
55 pthread->joiner = NULL; in backout_join()
96 if (pthread == NULL) in join_common()
99 if (pthread == curthread) in join_common()
121 *thread_return = pthread->ret; in join_common()
127 pthread->joiner = curthread; in join_common()
134 tid = pthread->tid; in join_common()
157 pthread->joiner = NULL; in join_common()
161 tmp = pthread->ret; in join_common()
[all …]
H A Dthr_list.c134 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 Dthr_private.h74 struct pthread;
373 struct pthread { struct
799 struct pthread *_thr_alloc(struct pthread *) __hidden;
803 int _thr_ref_add(struct pthread *, struct pthread *, int) __hidden;
804 void _thr_ref_delete(struct pthread *, struct pthread *) __hidden;
806 int _thr_find_thread(struct pthread *, struct pthread *, int) __hidden;
811 void _thr_free(struct pthread *, struct pthread *) __hidden;
831 struct pthread *_thr_hash_find(struct pthread *) __hidden;
832 void _thr_link(struct pthread *, struct pthread *) __hidden;
833 void _thr_unlink(struct pthread *, struct pthread *) __hidden;
[all …]
H A Dthr_setschedparam.c53 _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 Dthr_cancel.c50 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 Dthr_setprio.c44 _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, &param); in _pthread_setprio()
65 pthread->attr.prio = prio; in _pthread_setprio()
[all …]
H A Dthr_spec.c62 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 Dthr_detach.c45 _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 Dthr_syscalls.c103 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 Dthr_symbols.c45 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 Dthr_kill.c47 _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 Dthr_getschedparam.c50 _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 Dthr_malloc.c62 thr_malloc_lock(struct pthread *curthread) in thr_malloc_lock()
77 thr_malloc_unlock(struct pthread *curthread) in thr_malloc_unlock()
93 struct pthread *curthread; in __thr_calloc()
106 struct pthread *curthread; in __thr_free()
117 struct pthread *curthread; in __thr_malloc()
130 struct pthread *curthread; in __thr_realloc()
141 __thr_malloc_prefork(struct pthread *curthread) in __thr_malloc_prefork()
148 __thr_malloc_postfork(struct pthread *curthread) in __thr_malloc_postfork()
H A Dthr_suspend_np.c43 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 Dthr_sig.c73 static void check_suspend(struct pthread *);
97 thr_signal_block_slow(struct pthread *curthread) in thr_signal_block_slow()
133 _thr_signal_block(struct pthread *curthread) in _thr_signal_block()
142 _thr_signal_unblock(struct pthread *curthread) in _thr_signal_unblock()
170 _thr_send_sig(struct pthread *thread, int sig) in _thr_send_sig()
194 struct pthread *curthread = _get_curthread(); in sigcancel_handler()
214 struct pthread *curthread; in thr_sighandler()
252 struct pthread *curthread = _get_curthread(); in handle_signal()
323 _thr_ast(struct pthread *curthread) in _thr_ast()
409 check_suspend(struct pthread *curthread) in check_suspend()
[all …]
H A Dthr_resume_np.c46 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 Dthr_rtld.c116 struct pthread *curthread; in _thr_rtld_rlock_acquire()
134 struct pthread *curthread; in _thr_rtld_wlock_acquire()
151 struct pthread *curthread; in _thr_rtld_lock_release()
195 struct pthread *curthread; in _thr_dlerror_loc()
204 struct pthread *curthread; in _thr_dlerror_seen()
214 struct pthread *curthread; in _thr_rtld_init()
H A Dthr_sleepq.c83 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()
/freebsd-13.1/sys/contrib/libsodium/m4/
H A Dax_pthread.m495 # 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-13.1/contrib/googletest/googletest/m4/
H A Dacx_pthread.m469 # 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-13.1/contrib/ntp/sntp/libevent/m4/
H A Dacx_pthread.m492 # 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-13.1/contrib/libevent/m4/
H A Dacx_pthread.m492 # 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-13.1/contrib/unbound/
H A Dax_pthread.m493 # 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-13.1/tests/sys/kern/
H A DMakefile52 LIBADD.sys_getrandom+= pthread
53 LIBADD.ptrace_test+= pthread
54 LIBADD.unix_seqpacket_test+= pthread
55 LIBADD.kcov+= pthread
57 LIBADD.sendfile_helper+= pthread
58 LIBADD.fdgrowtable_test+= util pthread kvm procstat
/freebsd-13.1/share/mk/
H A Dsrc.libnames.mk184 pthread \
274 _DP_zstd= pthread
278 _DP_crypto= pthread
287 _DP_sqlite3= pthread
312 _DP_usb= pthread
314 _DP_rt= pthread
349 _DP_cuse= pthread
376 _DP_heimbase= pthread
382 _DP_lzma= md pthread
433 _DP_osmcomp= pthread
[all …]

12345678910>>...12