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

1234567891011>>

/freebsd-10-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_kill.c35 #include <pthread.h>
43 _pthread_kill(pthread_t pthread, int sig) argument
45 struct pthread *curthread;
60 if (curthread == pthread) {
62 _thr_send_sig(pthread, sig);
64 } else if ((ret = _thr_find_thread(curthread, pthread,
67 _thr_send_sig(pthread, sig);
68 THR_THREAD_UNLOCK(curthread, pthread);
H A Dthr_setschedparam.c38 #include <pthread.h>
50 _pthread_setschedparam(pthread_t pthread, int policy, argument
53 struct pthread *curthread = _get_curthread();
56 if (pthread == curthread)
58 else if ((ret = _thr_find_thread(curthread, pthread,
61 if (pthread->attr.sched_policy == policy &&
63 pthread->attr.prio == param->sched_priority)) {
64 pthread->attr.prio = param->sched_priority;
65 THR_THREAD_UNLOCK(curthread, pthread);
68 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.c33 #include <pthread.h>
41 _pthread_setprio(pthread_t pthread, int prio) argument
43 struct pthread *curthread = _get_curthread();
48 if (pthread == curthread)
50 else if ((ret = _thr_find_thread(curthread, pthread, /*include dead*/0)))
52 if (pthread->attr.sched_policy == SCHED_OTHER ||
53 pthread->attr.prio == prio) {
54 pthread->attr.prio = prio;
57 ret = _thr_setscheduler(pthread->tid,
58 pthread
[all...]
H A Dthr_getschedparam.c39 #include <pthread.h>
47 _pthread_getschedparam(pthread_t pthread, int *policy, argument
50 struct pthread *curthread = _get_curthread();
60 if (pthread == curthread)
62 else if ((ret = _thr_find_thread(curthread, pthread, /*include dead*/0)))
64 *policy = pthread->attr.sched_policy;
65 param->sched_priority = pthread->attr.prio;
66 THR_THREAD_UNLOCK(curthread, pthread);
H A Dthr_getcpuclockid.c31 #include <pthread.h>
40 _pthread_getcpuclockid(pthread_t pthread, clockid_t *clock_id) argument
43 if (pthread == NULL)
46 if (clock_getcpuclockid2(TID(pthread), CPUCLOCK_WHICH_TID, clock_id))
H A Dthr_symbols.c34 #include <pthread.h>
42 int _thread_off_tcb = offsetof(struct pthread, tcb);
43 int _thread_off_tid = offsetof(struct pthread, tid);
44 int _thread_off_next = offsetof(struct pthread, tle.tqe_next);
45 int _thread_off_attr_flags = offsetof(struct pthread, attr.flags);
48 int _thread_off_report_events = offsetof(struct pthread, report_events);
49 int _thread_off_event_mask = offsetof(struct pthread, event_mask);
50 int _thread_off_event_buf = offsetof(struct pthread, event_buf);
56 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, 0)) == 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.c29 #include <pthread.h>
43 struct pthread *curthread;
/freebsd-10-stable/lib/libkse/thread/
H A Dthr_setschedparam.c38 #include <pthread.h>
45 _pthread_setschedparam(pthread_t pthread, int policy, argument
48 struct pthread *curthread = _get_curthread();
63 } else if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0))
69 THR_SCHED_LOCK(curthread, pthread);
70 if ((pthread->state == PS_DEAD) ||
71 (pthread->state == PS_DEADLOCK) ||
72 ((pthread->flags & THR_FLAGS_EXITING) != 0)) {
73 THR_SCHED_UNLOCK(curthread, pthread);
74 _thr_ref_delete(curthread, pthread);
[all...]
H A Dthr_setprio.c33 #include <pthread.h>
37 int _pthread_setprio(pthread_t pthread, int prio);
42 _pthread_setprio(pthread_t pthread, int prio) argument
47 if ((ret = _pthread_getschedparam(pthread, &policy, &param)) == 0) {
49 ret = _pthread_setschedparam(pthread, policy, &param);
H A Dthr_getschedparam.c37 #include <pthread.h>
44 _pthread_getschedparam(pthread_t pthread, int *policy, argument
47 struct pthread *curthread = _get_curthread();
53 else if (pthread == curthread) {
60 THR_BASE_PRIORITY(pthread->base_priority);
61 tmp = pthread->attr.sched_policy;
67 else if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0))
69 THR_SCHED_LOCK(curthread, pthread);
71 THR_BASE_PRIORITY(pthread->base_priority);
72 tmp = pthread
[all...]
H A Dthr_kill.c35 #include <pthread.h>
42 _pthread_kill(pthread_t pthread, int sig) argument
44 struct pthread *curthread = _get_curthread();
56 else if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0))
60 _thr_sig_send(pthread, sig);
61 _thr_ref_delete(curthread, pthread);
H A Dthr_join.c34 #include <pthread.h>
41 _pthread_join(pthread_t pthread, void **thread_return) argument
43 struct pthread *curthread = _get_curthread();
51 if (pthread == NULL || pthread->magic != THR_MAGIC) {
58 if (pthread == curthread) {
68 if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/1)) != 0) {
74 THR_SCHED_LOCK(curthread, pthread);
76 if ((pthread->attr.flags & PTHREAD_DETACHED) != 0) {
77 THR_SCHED_UNLOCK(curthread, pthread);
[all...]
H A Dthr_detach.c35 #include <pthread.h>
42 _pthread_detach(pthread_t pthread) argument
44 struct pthread *curthread = _get_curthread();
46 struct pthread *joiner;
50 if (pthread == NULL || pthread->magic != THR_MAGIC)
54 else if ((rval = _thr_ref_add(curthread, pthread,
60 else if ((pthread->attr.flags & PTHREAD_DETACHED) != 0) {
62 _thr_ref_delete(curthread, pthread);
66 THR_SCHED_LOCK(curthread, pthread);
[all...]
H A Dthr_find_thread.c35 #include <pthread.h>
45 _thr_ref_add(struct pthread *curthread, struct pthread *thread,
49 struct pthread *pthread; local
59 pthread = _thr_hash_find(thread);
60 if (pthread) {
62 ((pthread->state == PS_DEAD) ||
63 ((pthread->state == PS_DEADLOCK) ||
64 ((pthread
[all...]
H A Dthr_symbols.c35 #include <pthread.h>
44 int _thread_off_tcb = offsetof(struct pthread, tcb);
46 int _thread_off_next = offsetof(struct pthread, tle.tqe_next);
47 int _thread_off_attr_flags = offsetof(struct pthread, attr.flags);
48 int _thread_off_kse = offsetof(struct pthread, kse);
50 int _thread_off_thr_locklevel = offsetof(struct pthread, locklevel);
58 int _thread_off_state = offsetof(struct pthread, state);
61 int _thread_off_sigmask = offsetof(struct pthread, sigmask);
62 int _thread_off_sigpend = offsetof(struct pthread, sigpend);
H A Dthr_autoinit.c41 #include <pthread.h>
/freebsd-10-stable/contrib/gcclibs/libgomp/config/posix/
H A Domp-lock.h8 #include <pthread.h>
/freebsd-10-stable/contrib/sendmail/include/libmilter/
H A Dmilter.h24 # include <pthread.h>
/freebsd-10-stable/lib/libc/gdtoa/
H A Dglue.c8 #include <pthread.h>
/freebsd-10-stable/lib/libnetbsd/
H A Dpthread.h27 * $FreeBSD: stable/10/lib/libnetbsd/pthread.h 314366 2017-02-28 00:56:33Z ngie $
33 #include_next <pthread.h>
/freebsd-10-stable/contrib/gcc/
H A Dgthr-lynx.h37 macros in pthread.h with defining _POSIX_THREADS_CALLS or undefine
41 #include <pthread.h>
/freebsd-10-stable/contrib/gcclibs/libgomp/config/posix95/
H A Domp-lock.h8 #include <pthread.h>

Completed in 77 milliseconds

1234567891011>>