Searched refs:pthread (Results 1 - 25 of 543) sorted by relevance

1234567891011>>

/freebsd-11-stable/lib/libthr/thread/
H A Dthr_detach.c34 #include <pthread.h>
42 _pthread_detach(pthread_t pthread) argument
44 struct pthread *curthread = _get_curthread();
47 if (pthread == NULL)
50 if ((rval = _thr_find_thread(curthread, pthread,
56 if ((pthread->flags & THR_FLAGS_DETACHED) != 0 ||
57 (pthread->joiner != NULL)) {
58 THR_THREAD_UNLOCK(curthread, pthread);
63 pthread->flags |= THR_FLAGS_DETACHED;
64 _thr_try_gc(curthread, pthread); /* threa
[all...]
H A Dthr_setschedparam.c39 #include <pthread.h>
51 _pthread_setschedparam(pthread_t pthread, int policy, argument
54 struct pthread *curthread = _get_curthread();
57 if (pthread == curthread)
59 else if ((ret = _thr_find_thread(curthread, pthread,
62 if (pthread->attr.sched_policy == policy &&
64 pthread->attr.prio == param->sched_priority)) {
65 pthread->attr.prio = param->sched_priority;
66 THR_THREAD_UNLOCK(curthread, pthread);
69 ret = _thr_setscheduler(pthread
[all...]
H A Dthr_join.c32 #include <pthread.h>
37 int _pthread_timedjoin_np(pthread_t pthread, void **thread_return,
46 struct pthread *pthread = (struct pthread *)arg; local
47 struct pthread *curthread = _get_curthread();
49 THR_THREAD_LOCK(curthread, pthread);
50 pthread->joiner = NULL;
51 THR_THREAD_UNLOCK(curthread, pthread);
55 _pthread_join(pthread_t pthread, voi argument
61 _pthread_timedjoin_np(pthread_t pthread, void **thread_return, const struct timespec *abstime) argument
76 join_common(pthread_t pthread, void **thread_return, const struct timespec *abstime) argument
[all...]
H A Dthr_setprio.c34 #include <pthread.h>
42 _pthread_setprio(pthread_t pthread, int prio) argument
44 struct pthread *curthread = _get_curthread();
49 if (pthread == curthread)
51 else if ((ret = _thr_find_thread(curthread, pthread, /*include dead*/0)))
53 if (pthread->attr.sched_policy == SCHED_OTHER ||
54 pthread->attr.prio == prio) {
55 pthread->attr.prio = prio;
58 ret = _thr_setscheduler(pthread->tid,
59 pthread
[all...]
H A Dthr_kill.c36 #include <pthread.h>
44 _pthread_kill(pthread_t pthread, int sig) argument
46 struct pthread *curthread;
61 if (curthread == pthread) {
63 _thr_send_sig(pthread, sig);
65 } else if ((ret = _thr_find_thread(curthread, pthread,
68 _thr_send_sig(pthread, sig);
69 THR_THREAD_UNLOCK(curthread, pthread);
H A Dthr_getschedparam.c40 #include <pthread.h>
48 _pthread_getschedparam(pthread_t pthread, int * __restrict policy, argument
51 struct pthread *curthread = _get_curthread();
61 if (pthread == curthread)
63 else if ((ret = _thr_find_thread(curthread, pthread, /*include dead*/0)))
65 *policy = pthread->attr.sched_policy;
66 param->sched_priority = pthread->attr.prio;
67 THR_THREAD_UNLOCK(curthread, pthread);
H A Dthr_getcpuclockid.c32 #include <pthread.h>
41 _pthread_getcpuclockid(pthread_t pthread, clockid_t *clock_id) argument
44 if (pthread == NULL)
47 if (clock_getcpuclockid2(TID(pthread), CPUCLOCK_WHICH_TID, clock_id))
H A Dthr_symbols.c35 #include <pthread.h>
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 Dthr_cancel.c31 #include <pthread.h>
42 testcancel(struct pthread *curthread)
50 _thr_testcancel(struct pthread *curthread)
56 _pthread_cancel(pthread_t pthread) argument
58 struct pthread *curthread = _get_curthread();
66 if ((ret = _thr_find_thread(curthread, pthread, 1)) == 0) {
67 if (!pthread->cancel_pending) {
68 pthread->cancel_pending = 1;
69 if (pthread->state != PS_DEAD)
70 _thr_send_sig(pthread, SIGCANCE
[all...]
H A Dthr_getthreadid_np.c30 #include <pthread.h>
44 struct pthread *curthread;
H A Dthr_getprio.c35 #include <pthread.h>
42 _pthread_getprio(pthread_t pthread) argument
47 if ((ret = _pthread_getschedparam(pthread, &policy, &param)) == 0)
H A Dthr_list.c36 #include <pthread.h>
63 static TAILQ_HEAD(, pthread) free_threadq;
70 LIST_HEAD(thread_hash_head, pthread);
75 static void thr_destroy(struct pthread *curthread, struct pthread *thread);
97 _thr_gc(struct pthread *curthread)
99 struct pthread *td, *td_next;
100 TAILQ_HEAD(, pthread) worklist;
132 struct pthread *
133 _thr_alloc(struct pthread *curthrea
343 struct pthread *pthread; local
[all...]
/freebsd-11-stable/contrib/gcclibs/libgomp/config/posix/
H A Domp-lock.h8 #include <pthread.h>
/freebsd-11-stable/contrib/sendmail/include/libmilter/
H A Dmilter.h24 # include <pthread.h>
/freebsd-11-stable/lib/libc/gdtoa/
H A Dglue.c8 #include <pthread.h>
/freebsd-11-stable/tools/tools/mctest/
H A DMakefile4 LIBADD= pthread
/freebsd-11-stable/lib/libnetbsd/
H A Dpthread.h27 * $FreeBSD: stable/11/lib/libnetbsd/pthread.h 314021 2017-02-21 03:46:43Z ngie $
33 #include_next <pthread.h>
/freebsd-11-stable/contrib/gcc/
H A Dgthr-lynx.h37 macros in pthread.h with defining _POSIX_THREADS_CALLS or undefine
41 #include <pthread.h>
/freebsd-11-stable/contrib/gcclibs/libgomp/config/posix95/
H A Domp-lock.h8 #include <pthread.h>
/freebsd-11-stable/tools/regression/gaithrstress/
H A DMakefile4 LIBADD= pthread
/freebsd-11-stable/tools/regression/pthread/cv_cancel1/
H A DMakefile5 LIBADD= pthread
/freebsd-11-stable/tools/regression/pthread/mutex_isowned_np/
H A DMakefile5 LIBADD= pthread
/freebsd-11-stable/tools/tools/netrate/http/
H A DMakefile6 LIBADD= pthread
/freebsd-11-stable/tools/tools/netrate/httpd/
H A DMakefile6 LIBADD= pthread
/freebsd-11-stable/tools/tools/netrate/juggle/
H A DMakefile6 LIBADD= pthread

Completed in 277 milliseconds

1234567891011>>