Home
last modified time | relevance | path

Searched refs:thrd (Results 1 – 11 of 11) sorted by relevance

/freebsd/lib/libthr/thread/
H A Dthr_private.h581 #define THR_SHOULD_GC(thrd) \ argument
582 ((thrd)->refcount == 0 && (thrd)->state == PS_DEAD && \
583 ((thrd)->flags & THR_FLAGS_DETACHED) != 0)
585 #define THR_IN_CRITICAL(thrd) \ argument
586 (((thrd)->locklevel > 0) || \
587 ((thrd)->critical_count > 0))
589 #define THR_CRITICAL_ENTER(thrd) \ argument
590 (thrd)->critical_count++
592 #define THR_CRITICAL_LEAVE(thrd) \ argument
594 (thrd)->critical_count--; \
[all …]
H A Dthr_list.c72 #define THREAD_HASH(thrd) (((unsigned long)thrd >> 8) % HASH_QUEUES) argument
379 struct pthread *curthread, *thrd; in __pthread_distribute_static_tls() local
389 TAILQ_FOREACH(thrd, &_thread_list, tle) { in __pthread_distribute_static_tls()
390 tlsbase = _get_static_tls_base(thrd, offset); in __pthread_distribute_static_tls()
/freebsd/contrib/processor-trace/libipt/test/src/
H A Dptunit-block_cache.c41 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 Dptunit-section.c118 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 Dptunit-image_section_cache.c534 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()
/freebsd/contrib/processor-trace/include/windows/
H A Dthreads.h78 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/contrib/processor-trace/include/posix/
H A Dthreads.h83 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/contrib/ntp/libntp/lib/isc/win32/
H A Dcondition.c61 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/lib/libstdthreads/
H A DMakefile6 SRCS= threads.h call_once.c cnd.c mtx.c thrd.c tss.c
/freebsd/lib/msun/src/
H A De_powf.c26 thrd = 3.33333343e-01, /* 0x3eaaaaab */ variable
141 w = (t*t)*(half-t*(thrd-t*qrtr)); in powf()
H A De_pow.c67 thrd = 3.3333333333333331e-01, /* 0x3fd55555, 0x55555555 */ variable
200 w = (t*t)*(half-t*(thrd-t*qrtr)); in pow()