Home
last modified time | relevance | path

Searched refs:pthread_self (Results 1 – 25 of 84) sorted by relevance

1234

/freebsd-13.1/contrib/netbsd-tests/lib/libc/setjmp/
H A Dt_threadjmp.c96 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-13.1/tools/regression/tls/ttls2/
H A Dttls2.c12 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-13.1/contrib/netbsd-tests/lib/libpthread/
H A Dt_kill.c85 self = pthread_self(); in sighandler()
120 mainthread = pthread_self(); in ATF_TC_BODY()
130 self = pthread_self(); in ATF_TC_BODY()
H A Dt_mutex.c160 printf("2: Second thread (%p). Count is %ld\n", pthread_self(), count); in mutex2_threadfunc()
222 printf("1: Thread %p\n", pthread_self()); in ATF_TC_BODY()
227 printf("1: Unlocking to start increment loop %p\n", pthread_self()); in ATF_TC_BODY()
278 printf("2: Second thread (%p). Count is %ld\n", pthread_self(), count); in mutex3_threadfunc()
336 printf("1: Thread %p\n", pthread_self()); in ATF_TC_BODY()
341 printf("1: Unlocking to start increment loop %p\n", pthread_self()); in ATF_TC_BODY()
524 pthread_t childid = pthread_self(); in high_prio()
555 pthread_t childid = pthread_self(); in low_prio()
H A Dt_swapcontext.c60 nself = (void *)pthread_self(); in swapfunc()
81 oself = (void *)pthread_self(); in threadfunc()
H A Dt_name.c54 pthread_t self = pthread_self(); in threadfunc()
76 pthread_t thr, self = pthread_self(); in ATF_TC_BODY()
H A Dt_join.c79 caller = pthread_self(); in threadfunc1()
158 ATF_REQUIRE(pthread_attr_get_np(pthread_self(), &attr) == 0); in threadfunc2()
H A Dh_resolv.c97 pthread_t self = pthread_self(); in resolvone()
136 pthread_t self = pthread_self(); in run()
H A Dt_sigmask.c139 thr_usr1 = pthread_self(); in respected_while_running_handler1()
148 thr_usr2 = pthread_self(); in respected_while_running_handler2()
H A Dh_cancel.c49 pthread_cancel(pthread_self()); in main()
H A Dt_sigalarm.c91 pthread_t self = pthread_self(); in ATF_TC_BODY()
/freebsd-13.1/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dctfmerge.c389 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-13.1/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform_mac.cpp85 uptr thread_identity = (uptr)pthread_self(); in cur_thread_location()
212 if (thread == pthread_self()) { in my_pthread_introspection_hook()
223 if (thread == pthread_self()) { in my_pthread_introspection_hook()
255 main_thread_identity = (uptr)pthread_self(); in InitializePlatform()
288 uptr thread_identity = (uptr)pthread_self(); in ImitateTlsWrite()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/Unix/
H A DThreading.inc105 return ::pthread_self();
129 return uint64_t(pthread_self());
175 ::pthread_setname_np(::pthread_self(), NameStr.data());
179 ::pthread_set_name_np(::pthread_self(), NameStr.data());
181 ::pthread_setname_np(::pthread_self(), "%s",
230 ::pthread_getname_np(::pthread_self(), buf, len);
236 ::pthread_get_name_np(::pthread_self(), buf, len);
243 if (0 == ::pthread_getname_np(::pthread_self(), Buffer, len))
260 pthread_self(),
/freebsd-13.1/tests/sys/fs/fusefs/
H A Dinterrupt.cc66 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-13.1/sys/contrib/openzfs/lib/libzpool/
H A Dkernel.c179 mp->m_owner = pthread_self(); in mutex_enter()
189 mp->m_owner = pthread_self(); in mutex_tryenter()
232 rwlp->rw_owner = pthread_self(); in rw_enter()
261 rwlp->rw_owner = pthread_self(); in rw_tryenter()
310 mp->m_owner = pthread_self(); in cv_wait()
343 mp->m_owner = pthread_self(); in cv_timedwait()
383 mp->m_owner = pthread_self(); in cv_timedwait_hires()
571 (uintmax_t)(uintptr_t)pthread_self()); in __dprintf()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_mac.cpp167 block, pthread_self()); in asan_dispatch_call_block_and_release()
200 asan_ctxt, pthread_self()); \
231 asan_ctxt, pthread_self()); in INTERCEPTOR()
/freebsd-13.1/contrib/ncurses/ncurses/trace/
H A Dlib_trace.c214 if ((pthread_self)) in _nc_va_tracef()
217 fprintf(fp, "%#lx:", (long) (intptr_t) pthread_self().p); in _nc_va_tracef()
219 fprintf(fp, "%#lx:", (long) (intptr_t) pthread_self()); in _nc_va_tracef()
/freebsd-13.1/sys/contrib/openzfs/lib/libuutil/
H A Duu_misc.c194 uu_panic_thread = pthread_self(); in uu_panic()
204 if (uu_panic_thread == pthread_self()) in uu_panic()
/freebsd-13.1/lib/libusb/
H A Dlibusb10_io.c258 ctx->ctx_handler = pthread_self(); in libusb_try_lock_events()
269 ctx->ctx_handler = pthread_self(); in libusb_lock_events()
276 if (ctx->ctx_handler == pthread_self()) { in libusb_unlock_events()
287 return (ctx->ctx_handler == pthread_self()); in libusb_event_handling_ok()
325 ctx->ctx_handler = pthread_self(); in libusb_wait_for_event()
346 ctx->ctx_handler = pthread_self(); in libusb_wait_for_event()
/freebsd-13.1/lib/libthr/thread/
H A Dthr_self.c41 __weak_reference(_Tthr_self, pthread_self);
/freebsd-13.1/contrib/ntp/lib/isc/pthreads/include/isc/
H A Dthread.h51 (unsigned long)pthread_self
/freebsd-13.1/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_wrapper_getpid.h25 #define __kmp_gettid() pthread_mach_thread_np(pthread_self())
/freebsd-13.1/sys/contrib/openzfs/lib/libspl/include/sys/
H A Dstack.h40 rc = pthread_getattr_np(pthread_self(), &attr); in stack_getbounds()
/freebsd-13.1/contrib/ntp/lib/isc/unix/
H A Dapp.c250 main_thread = pthread_self(); in isc__app_ctxstart()
583 REQUIRE(main_thread == pthread_self()); in isc__app_ctxrun()
845 blockedthread = pthread_self(); in isc__app_block()
865 REQUIRE(blockedthread == pthread_self()); in isc__app_unblock()

1234