| /freebsd-12.1/contrib/netbsd-tests/lib/libc/setjmp/ |
| H A D | t_threadjmp.c | 96 ATF_REQUIRE(myself == pthread_self()); in aborthandler() 110 myself = pthread_self(); in h_check() 127 ATF_REQUIRE(myself == pthread_self()); in h_check() 137 ATF_REQUIRE(myself == pthread_self()); in h_check() 141 ATF_REQUIRE(myself == pthread_self()); in h_check() 145 ATF_REQUIRE(myself == pthread_self()); in h_check()
|
| /freebsd-12.1/tools/regression/tls/ttls2/ |
| H A D | ttls2.c | 12 printf("thread %p, &i = %p\n", pthread_self(), &i); in foo1() 14 printf("thread %p, i = %d\n", pthread_self(), i); in foo1() 23 printf("thread %p, &i = %p\n", pthread_self(), &i); in foo2() 25 printf("thread %p, i = %d\n", pthread_self(), i); in foo2()
|
| /freebsd-12.1/contrib/llvm/lib/Support/Unix/ |
| H A D | Threading.inc | 102 return uint64_t(pthread_self()); 148 ::pthread_setname_np(::pthread_self(), NameStr.data()); 152 ::pthread_set_name_np(::pthread_self(), NameStr.data()); 154 ::pthread_setname_np(::pthread_self(), "%s", 203 ::pthread_getname_np(::pthread_self(), buf, len); 209 ::pthread_get_name_np(::pthread_self(), buf, len); 216 if (0 == ::pthread_getname_np(::pthread_self(), Buffer, len))
|
| /freebsd-12.1/contrib/netbsd-tests/lib/libpthread/ |
| H A D | t_kill.c | 85 self = pthread_self(); in sighandler() 120 mainthread = pthread_self(); in ATF_TC_BODY() 130 self = pthread_self(); in ATF_TC_BODY()
|
| H A D | t_swapcontext.c | 60 nself = (void *)pthread_self(); in swapfunc() 81 oself = (void *)pthread_self(); in threadfunc()
|
| H A D | t_name.c | 54 pthread_t self = pthread_self(); in threadfunc() 76 pthread_t thr, self = pthread_self(); in ATF_TC_BODY()
|
| H A D | t_mutex.c | 136 printf("2: Second thread (%p). Count is %ld\n", pthread_self(), count); in mutex2_threadfunc() 185 printf("1: Thread %p\n", pthread_self()); in ATF_TC_BODY() 218 printf("2: Second thread (%p). Count is %ld\n", pthread_self(), count); in mutex3_threadfunc() 266 printf("1: Thread %p\n", pthread_self()); in ATF_TC_BODY() 439 pthread_t childid = pthread_self(); in high_prio() 470 pthread_t childid = pthread_self(); in low_prio()
|
| H A D | t_join.c | 79 caller = pthread_self(); in threadfunc1() 158 ATF_REQUIRE(pthread_attr_get_np(pthread_self(), &attr) == 0); in threadfunc2()
|
| H A D | h_resolv.c | 97 pthread_t self = pthread_self(); in resolvone() 136 pthread_t self = pthread_self(); in run()
|
| H A D | t_sigmask.c | 139 thr_usr1 = pthread_self(); in respected_while_running_handler1() 148 thr_usr2 = pthread_self(); in respected_while_running_handler2()
|
| /freebsd-12.1/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | ctfmerge.c | 389 debug(2, "%d: merging %p into %p\n", pthread_self(), in wip_add_work() 460 pthread_self()); in worker_runphase2() 487 debug(2, "%d: merging %p into %p\n", pthread_self(), in worker_runphase2() 506 pthread_self(), (void *)pow2, fifo_len(wq->wq_queue), in worker_runphase2() 522 debug(2, "%d: entering first barrier\n", pthread_self()); in worker_thread() 526 debug(2, "%d: doing work in first barrier\n", pthread_self()); in worker_thread() 532 debug(2, "%d: ninqueue is %d, %d on queue\n", pthread_self(), in worker_thread() 536 debug(2, "%d: entering second barrier\n", pthread_self()); in worker_thread() 540 debug(2, "%d: phase 1 complete\n", pthread_self()); in worker_thread() 564 debug(1, "Thread %d announcing %s\n", pthread_self(), name); in merge_ctf_cb()
|
| /freebsd-12.1/contrib/gcc/ |
| H A D | gthr-posix95.h | 75 __gthrw(pthread_self) 273 pthread_t thread_id = __gthrw_(pthread_self) (); in __gthread_objc_thread_set_priority() 317 if (__gthrw_(pthread_getschedparam) (__gthrw_(pthread_self) (), &policy, ¶ms) == 0) in __gthread_objc_thread_get_priority() 353 return (objc_thread_t) __gthrw_(pthread_self) (); in __gthread_objc_thread_id() 613 pthread_t me = __gthrw_(pthread_self) (); in __gthread_recursive_mutex_lock() 631 pthread_t me = __gthrw_(pthread_self) (); in __gthread_recursive_mutex_trylock()
|
| H A D | gthr-posix.h | 120 __gthrw3(pthread_self) 129 __gthrw(pthread_self) 307 pthread_t thread_id = __gthrw_(pthread_self) (); in __gthread_objc_thread_set_priority() 351 if (__gthrw_(pthread_getschedparam) (__gthrw_(pthread_self) (), &policy, ¶ms) == 0) in __gthread_objc_thread_get_priority() 387 return (objc_thread_t) __gthrw_(pthread_self) (); in __gthread_objc_thread_id()
|
| H A D | gthr-dce.h | 98 __gthrw(pthread_self) in __gthrw() 201 if (pthread_setprio (__gthrw_(pthread_self) (), sys_priority) >= 0) in __gthread_objc_thread_set_priority() 216 if ((sys_priority = pthread_getprio (__gthrw_(pthread_self) ())) >= 0) in __gthread_objc_thread_get_priority() 260 pthread_t self = __gthrw_(pthread_self) (); in __gthread_objc_thread_id()
|
| /freebsd-12.1/tests/sys/fs/fusefs/ |
| H A D | interrupt.cc | 66 printf("Signaled! thread %p\n", pthread_self()); in sigusr2_handler() 234 self = pthread_self(); in TEST_F() 294 self = pthread_self(); in TEST_F() 376 self = pthread_self(); in TEST_F() 418 self = pthread_self(); in TEST_F() 494 self = pthread_self(); in TEST_F() 557 self = pthread_self(); in TEST_F() 593 self = pthread_self(); in TEST_F() 634 self = pthread_self(); in TEST_F() 762 self = pthread_self(); in TEST_F()
|
| /freebsd-12.1/contrib/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_platform_mac.cc | 79 ThreadState **thread_identity = (ThreadState **)pthread_self(); in cur_thread_location() 208 if (thread == pthread_self()) { in my_pthread_introspection_hook() 219 if (thread == pthread_self()) { in my_pthread_introspection_hook() 252 main_thread_identity = (uptr)pthread_self(); in InitializePlatform()
|
| /freebsd-12.1/contrib/gcclibs/libgomp/config/linux/ |
| H A D | affinity.c | 51 if (pthread_getaffinity_np (pthread_self (), sizeof (cpuset), &cpuset)) in gomp_init_affinity() 77 pthread_setaffinity_np (pthread_self (), sizeof (cpuset), &cpuset); in gomp_init_affinity()
|
| H A D | proc.c | 78 if (pthread_getaffinity_np (pthread_self (), sizeof (cpuset), &cpuset) == 0) in gomp_init_num_threads() 101 if (pthread_getaffinity_np (pthread_self (), sizeof (cpuset), in get_num_procs()
|
| /freebsd-12.1/contrib/gcclibs/libgomp/config/posix95/ |
| H A D | lock.c | 84 pthread_t me = pthread_self (); in omp_set_nest_lock() 110 pthread_t me = pthread_self (); in omp_test_nest_lock()
|
| /freebsd-12.1/contrib/ncurses/ncurses/trace/ |
| H A D | lib_trace.c | 185 if ((pthread_self)) in _nc_va_tracef() 188 fprintf(TraceFP, "%#lx:", (long) (intptr_t) pthread_self().p); in _nc_va_tracef() 190 fprintf(TraceFP, "%#lx:", (long) (intptr_t) pthread_self()); in _nc_va_tracef()
|
| /freebsd-12.1/contrib/compiler-rt/lib/asan/ |
| H A D | asan_mac.cc | 200 block, pthread_self()); in asan_dispatch_call_block_and_release() 233 asan_ctxt, pthread_self()); \ 264 asan_ctxt, pthread_self()); in INTERCEPTOR()
|
| /freebsd-12.1/lib/libusb/ |
| H A D | libusb10_io.c | 250 ctx->ctx_handler = pthread_self(); in libusb_try_lock_events() 261 ctx->ctx_handler = pthread_self(); in libusb_lock_events() 268 if (ctx->ctx_handler == pthread_self()) { in libusb_unlock_events() 279 return (ctx->ctx_handler == pthread_self()); in libusb_event_handling_ok() 317 ctx->ctx_handler = pthread_self(); in libusb_wait_for_event() 338 ctx->ctx_handler = pthread_self(); in libusb_wait_for_event()
|
| /freebsd-12.1/cddl/contrib/opensolaris/lib/libuutil/common/ |
| H A D | uu_misc.c | 191 uu_panic_thread = pthread_self(); in uu_panic() 199 if (uu_panic_thread == pthread_self()) in uu_panic()
|
| /freebsd-12.1/cddl/compat/opensolaris/misc/ |
| H A D | thread_pool.c | 92 pthread_t my_tid = pthread_self(); in job_cleanup() 126 active.tpa_tid = pthread_self(); in tpool_worker() 416 pthread_t my_tid = pthread_self(); in tpool_member()
|
| /freebsd-12.1/lib/libthr/thread/ |
| H A D | thr_self.c | 41 __weak_reference(_Tthr_self, pthread_self);
|