/freebsd-13-stable/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) argument 83 if (!thrd || !fun) 99 thrd->handle = handle; 103 static inline int thrd_join(thrd_t *thrd, int *res) argument 108 if (!thrd) 111 status = WaitForSingleObject(thrd->handle, INFINITE); 118 success = GetExitCodeThread(thrd->handle, &result); 120 (void) CloseHandle(thrd->handle); 127 success = CloseHandle(thrd->handle);
|
/freebsd-13-stable/lib/libthr/thread/ |
H A D | thr_stack.c | 138 _thr_stack_fix_protection(struct pthread *thrd) argument 141 mprotect((char *)thrd->attr.stackaddr_attr + 142 round_up(thrd->attr.guardsize_attr), 143 round_up(thrd->attr.stacksize_attr), 170 struct pthread *curthread, *thrd; local 185 TAILQ_FOREACH(thrd, &_thread_gc_list, gcle) 186 _thr_stack_fix_protection(thrd); 187 TAILQ_FOREACH(thrd, &_thread_list, tle) 188 _thr_stack_fix_protection(thrd);
|
H A D | thr_private.h | 586 #define THR_SHOULD_GC(thrd) \ 587 ((thrd)->refcount == 0 && (thrd)->state == PS_DEAD && \ 588 ((thrd)->flags & THR_FLAGS_DETACHED) != 0) 590 #define THR_IN_CRITICAL(thrd) \ 591 (((thrd)->locklevel > 0) || \ 592 ((thrd)->critical_count > 0)) 594 #define THR_CRITICAL_ENTER(thrd) \ 595 (thrd)->critical_count++ 597 #define THR_CRITICAL_LEAVE(thrd) \ [all...] |
H A D | thr_list.c | 75 #define THREAD_HASH(thrd) (((unsigned long)thrd >> 8) % HASH_QUEUES) 382 struct pthread *curthread, *thrd; local 392 TAILQ_FOREACH(thrd, &_thread_list, tle) { 393 tlsbase = _get_static_tls_base(thrd, offset);
|
/freebsd-13-stable/contrib/processor-trace/libipt/test/src/ |
H A D | ptunit-block_cache.c | 41 struct ptunit_thrd_fixture thrd; member in struct:bcache_fixture 68 ptu_test(ptunit_thrd_init, &bfix->thrd); 87 int thrd; local 89 ptu_test(ptunit_thrd_fini, &bfix->thrd); 91 for (thrd = 0; thrd < bfix->thrd.nthreads; ++thrd) 92 ptu_int_eq(bfix->thrd.result[thrd], 321 int thrd; local [all...] |
H A D | ptunit-section.c | 118 struct ptunit_thrd_fixture thrd; member in struct:section_fixture 1114 int thrd; local 1116 for (thrd = 0; thrd < num_threads; ++thrd) 1117 ptu_test(ptunit_thrd_create, &sfix->thrd, worker, sfix); 1337 ptu_test(ptunit_thrd_init, &sfix->thrd); 1346 int thrd, errcode; local 1348 ptu_test(ptunit_thrd_fini, &sfix->thrd); 1390 for (thrd [all...] |
H A D | ptunit-image_section_cache.c | 534 struct ptunit_thrd_fixture thrd; member in struct:iscache_fixture 551 ptu_test(ptunit_thrd_init, &cfix->thrd); 604 ptu_test(ptunit_thrd_fini, &cfix->thrd); 606 for (idx = 0; idx < cfix->thrd.nthreads; ++idx) 607 ptu_int_eq(cfix->thrd.result[idx], 0); 1931 int thrd; local 1933 for (thrd = 0; thrd < num_threads; ++thrd) 1934 ptu_test(ptunit_thrd_create, &cfix->thrd, worke [all...] |
/freebsd-13-stable/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) argument 88 if (!thrd || !fun) 98 errcode = pthread_create(&thrd->thread, NULL, thrd_routine, args); 107 static inline int thrd_join(thrd_t *thrd, int *res) argument 112 if (!thrd) 115 errcode = pthread_join(thrd->thread, &result);
|
/freebsd-13-stable/contrib/ntp/lib/isc/win32/ |
H A D | condition.c | 61 register_thread(unsigned long thrd, isc_condition_t *gblcond, argument 87 newthread->th = thrd; 98 find_thread_condition(unsigned long thrd, isc_condition_t *cond, argument 112 if (threadcond->th == thrd) { 121 return (register_thread(thrd, cond, threadcondp));
|
/freebsd-13-stable/lib/libstdthreads/ |
H A D | Makefile | 8 SRCS= threads.h call_once.c cnd.c mtx.c thrd.c tss.c
|
/freebsd-13-stable/lib/msun/src/ |
H A D | e_pow.c | 71 thrd = 3.3333333333333331e-01, /* 0x3fd55555, 0x55555555 */ variable 204 w = (t*t)*(half-t*(thrd-t*qrtr));
|
H A D | e_powf.c | 29 thrd = 3.33333343e-01, /* 0x3eaaaaab */ variable 144 w = (t*t)*(half-t*(thrd-t*qrtr));
|