| /src/lib/libthr/thread/ |
| H A D | thr_private.h | 584 #define THR_SHOULD_GC(thrd) \ argument 585 ((thrd)->refcount == 0 && (thrd)->state == PS_DEAD && \ 586 ((thrd)->flags & THR_FLAGS_DETACHED) != 0) 588 #define THR_IN_CRITICAL(thrd) \ argument 589 (((thrd)->locklevel > 0) || \ 590 ((thrd)->critical_count > 0)) 592 #define THR_CRITICAL_ENTER(thrd) \ argument 593 (thrd)->critical_count++ 595 #define THR_CRITICAL_LEAVE(thrd) \ argument 597 (thrd)->critical_count--; \ [all …]
|
| H A D | thr_stack.c | 133 _thr_stack_fix_protection(struct pthread *thrd) in _thr_stack_fix_protection() argument 136 mprotect((char *)thrd->attr.stackaddr_attr + in _thr_stack_fix_protection() 137 round_up(thrd->attr.guardsize_attr), in _thr_stack_fix_protection() 138 round_up(thrd->attr.stacksize_attr), in _thr_stack_fix_protection() 157 struct pthread *curthread, *thrd; in __thr_map_stacks_exec() local 172 TAILQ_FOREACH(thrd, &_thread_gc_list, gcle) in __thr_map_stacks_exec() 173 _thr_stack_fix_protection(thrd); in __thr_map_stacks_exec() 174 TAILQ_FOREACH(thrd, &_thread_list, tle) in __thr_map_stacks_exec() 175 _thr_stack_fix_protection(thrd); in __thr_map_stacks_exec()
|
| H A D | thr_list.c | 73 #define THREAD_HASH(thrd) (((unsigned long)thrd >> 8) % HASH_QUEUES) argument
|
| /src/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 1114 int thrd; in stress() local 1116 for (thrd = 0; thrd < num_threads; ++thrd) in stress() 1117 ptu_test(ptunit_thrd_create, &sfix->thrd, worker, sfix); in stress() 1337 ptu_test(ptunit_thrd_init, &sfix->thrd); in sfix_init() 1346 int thrd, errcode; in sfix_fini() local 1348 ptu_test(ptunit_thrd_fini, &sfix->thrd); in sfix_fini() 1390 for (thrd = 0; thrd < sfix->thrd.nthreads; ++thrd) in sfix_fini() 1391 ptu_int_eq(sfix->thrd.result[thrd], 0); in sfix_fini()
|
| H A D | ptunit-image_section_cache.c | 534 struct ptunit_thrd_fixture thrd; member 551 ptu_test(ptunit_thrd_init, &cfix->thrd); in dfix_init() 604 ptu_test(ptunit_thrd_fini, &cfix->thrd); in cfix_fini() 606 for (idx = 0; idx < cfix->thrd.nthreads; ++idx) in cfix_fini() 607 ptu_int_eq(cfix->thrd.result[idx], 0); in cfix_fini() 1931 int thrd; in stress() local 1933 for (thrd = 0; thrd < num_threads; ++thrd) in stress() 1934 ptu_test(ptunit_thrd_create, &cfix->thrd, worker, cfix); in stress()
|
| /src/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()
|
| /src/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()
|
| /src/contrib/ntp/libntp/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()
|
| /src/lib/libstdthreads/ |
| H A D | Makefile | 6 SRCS= threads.h call_once.c cnd.c mtx.c thrd.c tss.c
|
| /src/lib/msun/src/ |
| H A D | e_powf.c | 26 thrd = 3.33333343e-01, /* 0x3eaaaaab */ variable 141 w = (t*t)*(half-t*(thrd-t*qrtr)); in powf()
|
| H A D | e_pow.c | 67 thrd = 3.3333333333333331e-01, /* 0x3fd55555, 0x55555555 */ variable 200 w = (t*t)*(half-t*(thrd-t*qrtr)); in pow()
|