/dragonfly/lib/libthread_xu/thread/ |
H A D | thr_join.c | 44 pthread_t pthread = (pthread_t)arg; in backout_join() local 47 pthread->joiner = NULL; in backout_join() 79 if (pthread == NULL) in join_common() 82 if (pthread == curthread) in join_common() 90 } else if (pthread->joiner != NULL) { in join_common() 99 pthread->joiner = curthread; in join_common() 129 pthread->joiner = NULL; in join_common() 133 tmp = pthread->ret; in join_common() 135 pthread->tlflags |= TLFLAGS_DETACHED; in join_common() 136 pthread->joiner = NULL; in join_common() [all …]
|
H A D | thr_setschedparam.c | 44 _pthread_setschedparam(pthread_t pthread, int policy, in _pthread_setschedparam() argument 50 if (pthread == curthread) { in _pthread_setschedparam() 72 THR_THREAD_LOCK(curthread, pthread); in _pthread_setschedparam() 73 if (pthread->attr.sched_policy == policy && in _pthread_setschedparam() 74 pthread->attr.prio == param->sched_priority) { in _pthread_setschedparam() 75 THR_THREAD_UNLOCK(curthread, pthread); in _pthread_setschedparam() 79 ret = _thr_set_sched_other_prio(pthread, in _pthread_setschedparam() 87 pthread->attr.sched_policy = policy; in _pthread_setschedparam() 88 pthread->attr.prio = param->sched_priority; in _pthread_setschedparam() 90 THR_THREAD_UNLOCK(curthread, pthread); in _pthread_setschedparam() [all …]
|
H A D | thr_spec.c | 192 pthread_t pthread; in _pthread_setspecific() local 196 pthread = tls_get_curthread(); in _pthread_setspecific() 198 if (pthread->specific || in _pthread_setspecific() 202 if (pthread->specific[key].data == NULL) { in _pthread_setspecific() 204 pthread->specific_data_count++; in _pthread_setspecific() 206 pthread->specific_data_count--; in _pthread_setspecific() 207 pthread->specific[key].data = value; in _pthread_setspecific() 208 pthread->specific[key].seqno = in _pthread_setspecific() 226 pthread_t pthread; in _pthread_getspecific() local 230 pthread = tls_get_curthread(); in _pthread_getspecific() [all …]
|
H A D | thr_detach.c | 37 _pthread_detach(pthread_t pthread) in _pthread_detach() argument 42 if (pthread == NULL) in _pthread_detach() 46 if ((rval = _thr_find_thread(curthread, pthread, in _pthread_detach() 53 if ((pthread->tlflags & TLFLAGS_DETACHED) != 0 || in _pthread_detach() 54 (pthread->joiner != NULL)) { in _pthread_detach() 60 pthread->tlflags |= TLFLAGS_DETACHED; in _pthread_detach() 61 if (pthread->state == PS_DEAD) in _pthread_detach() 62 THR_GCLIST_ADD(pthread); in _pthread_detach()
|
H A D | thr_getschedparam.c | 43 _pthread_getschedparam(pthread_t pthread, int * __restrict policy, in _pthread_getschedparam() argument 52 if (pthread == curthread) { in _pthread_getschedparam() 63 else if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0)) in _pthread_getschedparam() 65 THR_THREAD_LOCK(curthread, pthread); in _pthread_getschedparam() 66 *policy = pthread->attr.sched_policy; in _pthread_getschedparam() 67 param->sched_priority = pthread->attr.prio; in _pthread_getschedparam() 68 THR_THREAD_UNLOCK(curthread, pthread); in _pthread_getschedparam() 69 _thr_ref_delete(curthread, pthread); in _pthread_getschedparam()
|
H A D | thr_cancel.c | 36 _pthread_cancel(pthread_t pthread) in _pthread_cancel() argument 48 if ((ret = _thr_ref_add(curthread, pthread, 0)) != 0) { in _pthread_cancel() 54 oldval = pthread->cancelflags; in _pthread_cancel() 58 } while (!atomic_cmpset_acq_int(&pthread->cancelflags, oldval, newval)); in _pthread_cancel() 61 _thr_send_sig(pthread, SIGCANCEL); in _pthread_cancel() 63 _thr_ref_delete(curthread, pthread); in _pthread_cancel()
|
H A D | thr_kill.c | 41 _pthread_kill(pthread_t pthread, int sig) in _pthread_kill() argument 58 if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0)) in _pthread_kill() 61 _thr_send_sig(pthread, sig); in _pthread_kill() 62 _thr_ref_delete(curthread, pthread); in _pthread_kill()
|
H A D | thr_getcpuclockid.c | 38 _pthread_getcpuclockid(pthread_t pthread, clockid_t *clock_id) in _pthread_getcpuclockid() argument 40 if (pthread == NULL) in _pthread_getcpuclockid() 43 if (getcpuclockid(getpid(), pthread->tid, clock_id)) in _pthread_getcpuclockid()
|
H A D | thr_setprio.c | 38 _pthread_setprio(pthread_t pthread, int prio) in _pthread_setprio() argument 43 if ((ret = _pthread_getschedparam(pthread, &policy, ¶m)) == 0) { in _pthread_setprio() 45 ret = _pthread_setschedparam(pthread, policy, ¶m); in _pthread_setprio()
|
H A D | thr_list.c | 342 pthread_t pthread; in _thr_find_thread() local 347 pthread = _thr_hash_find(thread); in _thr_find_thread() 348 if (pthread) { in _thr_find_thread() 349 if (include_dead == 0 && pthread->state == PS_DEAD) { in _thr_find_thread() 350 pthread = NULL; in _thr_find_thread() 355 return ((pthread != NULL) ? 0 : ESRCH); in _thr_find_thread()
|
H A D | thr_getprio.c | 39 _pthread_getprio(pthread_t pthread) in _pthread_getprio() argument 44 if ((ret = _pthread_getschedparam(pthread, &policy, ¶m)) == 0) in _pthread_getprio()
|
/dragonfly/sys/contrib/dev/acpica/source/include/platform/ |
H A D | acfreebsd.h | 216 #define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) ACPI_TO_INTEGER (pthread)) argument
|
H A D | accygwin.h | 195 #define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) ACPI_TO_INTEGER (pthread)) argument
|
H A D | acdragonfly.h | 233 #define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) ACPI_TO_INTEGER (pthread)) argument
|
/dragonfly/test/interbench/ |
H A D | interbench.c | 191 void set_thread_fifo(pthread_t pthread, int prio) in set_thread_fifo() argument 196 if (pthread_setschedparam(pthread, SCHED_FIFO, &sp) == -1) in set_thread_fifo() 235 void set_thread_normal(pthread_t pthread) in set_thread_normal() argument 240 if (pthread_setschedparam(pthread, SCHED_OTHER, &sp) == -1) in set_thread_normal() 753 create_pthread(&ringthreads[i].pthread, NULL, in emulate_ring() 764 join_pthread(ringthreads[i].pthread, NULL); in emulate_ring() 860 join_pthread(hackthread.pthread, NULL); in emulate_hackbench() 1205 join_pthread(th->pthread, NULL); in stop_thread() 1230 create_pthread(&th->pthread, NULL, emulation_thread, (void*)(long)i); in initialise_thread() 1306 set_thread_fifo(thi->pthread, 95); in run_benchchild() [all …]
|
/dragonfly/test/stress/stress2/testcases/thr1/ |
H A D | Makefile | 7 CFLAGS+= -pthread
|
/dragonfly/test/stress/stress2/testcases/thr2/ |
H A D | Makefile | 7 CFLAGS+= -pthread
|
/dragonfly/usr.bin/vknet/ |
H A D | Makefile | 3 CFLAGS += -DUSE_PTHREADS=1 -pthread
|
/dragonfly/nrelease/gui/root/.vim/ftplugin/ |
H A D | c.vim | 1 set makeprg=cc\ -pipe\ -pthread\ -Wall\ -o\ %<\ %\ -lm
|
/dragonfly/sbin/svc/ |
H A D | Makefile | 9 CFLAGS+=-pthread
|
/dragonfly/usr.sbin/vknetd/ |
H A D | Makefile | 4 LDADD= -pthread
|
/dragonfly/gnu/usr.bin/binutils234/block3/gold-linker/ |
H A D | Makefile | 11 LDFLAGS+= -pthread
|
/dragonfly/lib/libdmsg/ |
H A D | Makefile | 6 CFLAGS+= -pthread
|
/dragonfly/lib/librt/ |
H A D | Makefile | 4 LDADD+=-pthread
|
/dragonfly/sys/platform/vkernel64/conf/ |
H A D | Makefile | 23 SYSTEM_LD= @${CC} ${DEBUG} -Wl,--export-dynamic -o ${.TARGET} ${SYSTEM_OBJS} vers.o -pthread
|