| /freebsd-12.1/lib/libthr/thread/ |
| H A D | thr_private.h | 580 ((thrd)->refcount == 0 && (thrd)->state == PS_DEAD && \ 585 ((thrd)->critical_count > 0)) 588 (thrd)->critical_count++ 592 (thrd)->critical_count--; \ 593 _thr_ast(thrd); \ 610 (thrd)->locklevel++; \ 616 (thrd)->locklevel++; \ 634 (thrd)->locklevel--; \ 635 _thr_ast(thrd); \ 669 _thr_hash_add(thrd); \ [all …]
|
| H A D | thr_stack.c | 138 _thr_stack_fix_protection(struct pthread *thrd) in _thr_stack_fix_protection() argument 141 mprotect((char *)thrd->attr.stackaddr_attr + in _thr_stack_fix_protection() 142 round_up(thrd->attr.guardsize_attr), in _thr_stack_fix_protection() 143 round_up(thrd->attr.stacksize_attr), in _thr_stack_fix_protection() 170 struct pthread *curthread, *thrd; in __thr_map_stacks_exec() local 185 TAILQ_FOREACH(thrd, &_thread_gc_list, gcle) in __thr_map_stacks_exec() 186 _thr_stack_fix_protection(thrd); in __thr_map_stacks_exec() 187 TAILQ_FOREACH(thrd, &_thread_list, tle) in __thr_map_stacks_exec() 188 _thr_stack_fix_protection(thrd); in __thr_map_stacks_exec()
|
| H A D | thr_list.c | 75 #define THREAD_HASH(thrd) (((unsigned long)thrd >> 8) % HASH_QUEUES) argument 382 struct pthread *curthread, *thrd; in __pthread_distribute_static_tls() local 392 TAILQ_FOREACH(thrd, &_thread_list, tle) { in __pthread_distribute_static_tls() 393 tlsbase = _get_static_tls_base(thrd, offset); in __pthread_distribute_static_tls()
|
| /freebsd-12.1/contrib/processor-trace/libipt/test/src/ |
| H A D | ptunit-block_cache.c | 41 struct ptunit_thrd_fixture thrd; member 68 ptu_test(ptunit_thrd_init, &bfix->thrd); in cfix_init() 87 int thrd; in bfix_fini() local 89 ptu_test(ptunit_thrd_fini, &bfix->thrd); in bfix_fini() 91 for (thrd = 0; thrd < bfix->thrd.nthreads; ++thrd) in bfix_fini() 92 ptu_int_eq(bfix->thrd.result[thrd], 0); in bfix_fini() 321 int thrd; in stress() local 323 for (thrd = 0; thrd < bfix_threads; ++thrd) in stress() 324 ptu_test(ptunit_thrd_create, &bfix->thrd, worker, in stress()
|
| H A D | ptunit-section.c | 118 struct ptunit_thrd_fixture thrd; member 1079 int thrd; in stress() local 1081 for (thrd = 0; thrd < num_threads; ++thrd) in stress() 1082 ptu_test(ptunit_thrd_create, &sfix->thrd, worker, sfix); in stress() 1294 ptu_test(ptunit_thrd_init, &sfix->thrd); in sfix_init() 1301 int thrd; in sfix_fini() local 1303 ptu_test(ptunit_thrd_fini, &sfix->thrd); in sfix_fini() 1305 for (thrd = 0; thrd < sfix->thrd.nthreads; ++thrd) in sfix_fini() 1306 ptu_int_eq(sfix->thrd.result[thrd], 0); in sfix_fini()
|
| H A D | ptunit-image_section_cache.c | 532 struct ptunit_thrd_fixture thrd; member 549 ptu_test(ptunit_thrd_init, &cfix->thrd); in dfix_init() 600 ptu_test(ptunit_thrd_fini, &cfix->thrd); in cfix_fini() 602 for (idx = 0; idx < cfix->thrd.nthreads; ++idx) in cfix_fini() 603 ptu_int_eq(cfix->thrd.result[idx], 0); in cfix_fini() 1927 int thrd; in stress() local 1929 for (thrd = 0; thrd < num_threads; ++thrd) in stress() 1930 ptu_test(ptunit_thrd_create, &cfix->thrd, worker, cfix); in stress()
|
| /freebsd-12.1/contrib/processor-trace/include/windows/ |
| H A D | threads.h | 78 static inline int thrd_create(thrd_t *thrd, thrd_start_t fun, void *arg) in thrd_create() argument 83 if (!thrd || !fun) in thrd_create() 99 thrd->handle = handle; in thrd_create() 103 static inline int thrd_join(thrd_t *thrd, int *res) in thrd_join() argument 108 if (!thrd) in thrd_join() 111 status = WaitForSingleObject(thrd->handle, INFINITE); in thrd_join() 118 success = GetExitCodeThread(thrd->handle, &result); in thrd_join() 120 (void) CloseHandle(thrd->handle); in thrd_join() 127 success = CloseHandle(thrd->handle); in thrd_join()
|
| /freebsd-12.1/contrib/processor-trace/include/posix/ |
| H A D | threads.h | 83 static inline int thrd_create(thrd_t *thrd, thrd_start_t fun, void *arg) in thrd_create() argument 88 if (!thrd || !fun) in thrd_create() 98 errcode = pthread_create(&thrd->thread, NULL, thrd_routine, args); in thrd_create() 107 static inline int thrd_join(thrd_t *thrd, int *res) in thrd_join() argument 112 if (!thrd) in thrd_join() 115 errcode = pthread_join(thrd->thread, &result); in thrd_join()
|
| /freebsd-12.1/contrib/ntp/lib/isc/win32/ |
| H A D | condition.c | 61 register_thread(unsigned long thrd, isc_condition_t *gblcond, in register_thread() argument 87 newthread->th = thrd; in register_thread() 98 find_thread_condition(unsigned long thrd, isc_condition_t *cond, in find_thread_condition() argument 112 if (threadcond->th == thrd) { in find_thread_condition() 121 return (register_thread(thrd, cond, threadcondp)); in find_thread_condition()
|
| /freebsd-12.1/lib/libstdthreads/ |
| H A D | Makefile | 8 SRCS= threads.h call_once.c cnd.c mtx.c thrd.c tss.c
|
| /freebsd-12.1/lib/msun/src/ |
| H A D | e_powf.c | 29 thrd = 3.33333343e-01, /* 0x3eaaaaab */ variable 144 w = (t*t)*(half-t*(thrd-t*qrtr)); in __ieee754_powf()
|
| H A D | e_pow.c | 71 thrd = 3.3333333333333331e-01, /* 0x3fd55555, 0x55555555 */ variable 204 w = (t*t)*(half-t*(thrd-t*qrtr)); in __ieee754_pow()
|