Home
last modified time | relevance | path

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

12345

/freebsd/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/tools/test/stress2/misc/
H A Dpoll2.sh100 pthread_set_name_np(pthread_self(), "wr-idle"); function
103 pthread_set_name_np(pthread_self(), "wr-act"); function
121 pthread_set_name_np(pthread_self(), "rd-idle"); function
124 pthread_set_name_np(pthread_self(), "rd-act"); function
146 pthread_set_name_np(pthread_self(), "pl-idle"); function
147 pthread_set_name_np(pthread_self(), "pl-act"); function
H A Dmmap11.sh130 pthread_set_name_np(pthread_self(), __func__);
164 pthread_set_name_np(pthread_self(), __func__);
189 pthread_set_name_np(pthread_self(), __func__);
210 pthread_set_name_np(pthread_self(), __func__);
234 pthread_set_name_np(pthread_self(), __func__);
H A Dmmap48.sh63 pthread_set_name_np(pthread_self(), __func__);
83 pthread_set_name_np(pthread_self(), __func__);
107 pthread_set_name_np(pthread_self(), __func__);
138 pthread_set_name_np(pthread_self(), __func__);
155 pthread_set_name_np(pthread_self(), __func__);
173 pthread_set_name_np(pthread_self(), __func__);
H A Dkevent9.sh38 pthread_set_name_np(pthread_self(), "procmaker");
64 pthread_set_name_np(pthread_self(), "reaper");
80 pthread_set_name_np(pthread_self(), "main");
H A Dmmap10.sh132 pthread_set_name_np(pthread_self(), __func__);
166 pthread_set_name_np(pthread_self(), __func__);
191 pthread_set_name_np(pthread_self(), __func__);
213 pthread_set_name_np(pthread_self(), __func__);
H A Dpthread9.sh97 pthread_set_name_np(pthread_self(), __func__); function
116 pthread_set_name_np(pthread_self(), __func__); function
134 pthread_set_name_np(pthread_self(), __func__); function
H A Dmmap18.sh139 pthread_set_name_np(pthread_self(), __func__);
169 pthread_set_name_np(pthread_self(), __func__);
194 pthread_set_name_np(pthread_self(), __func__);
216 pthread_set_name_np(pthread_self(), __func__);
H A Dpthread7.sh158 pthread_set_name_np(pthread_self(), __func__); function
182 pthread_set_name_np(pthread_self(), __func__); function
212 pthread_set_name_np(pthread_self(), __func__); function
H A Dpthread2.sh173 pthread_set_name_np(pthread_self(), __func__); function
197 pthread_set_name_np(pthread_self(), __func__); function
227 pthread_set_name_np(pthread_self(), __func__); function
H A Dpthread3.sh161 pthread_set_name_np(pthread_self(), __func__); function
186 pthread_set_name_np(pthread_self(), __func__); function
216 pthread_set_name_np(pthread_self(), __func__); function
H A Dpthread4.sh168 pthread_set_name_np(pthread_self(), __func__); function
193 pthread_set_name_np(pthread_self(), __func__); function
223 pthread_set_name_np(pthread_self(), __func__); function
H A Dpthread6.sh160 pthread_set_name_np(pthread_self(), __func__); function
185 pthread_set_name_np(pthread_self(), __func__); function
215 pthread_set_name_np(pthread_self(), __func__); function
H A Dmmap21.sh75 pthread_set_name_np(pthread_self(), __func__); function
90 pthread_set_name_np(pthread_self(), __func__); function
/freebsd/tools/regression/tls/ttls2/
H A Dttls2.c11 printf("thread %p, &i = %p\n", pthread_self(), &i); in foo1()
13 printf("thread %p, i = %d\n", pthread_self(), i); in foo1()
22 printf("thread %p, &i = %p\n", pthread_self(), &i); in foo2()
24 printf("thread %p, i = %d\n", pthread_self(), i); in foo2()
/freebsd/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()
/freebsd/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/tests/sys/fs/fusefs/
H A Dinterrupt.cc64 printf("Signaled! thread %p\n", pthread_self()); in sigusr2_handler()
232 self = pthread_self(); in TEST_F()
292 self = pthread_self(); in TEST_F()
374 self = pthread_self(); in TEST_F()
416 self = pthread_self(); in TEST_F()
492 self = pthread_self(); in TEST_F()
555 self = pthread_self(); in TEST_F()
591 self = pthread_self(); in TEST_F()
632 self = pthread_self(); in TEST_F()
760 self = pthread_self(); in TEST_F()
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/
H A DThreading.inc109 pthread_t llvm_thread_get_current_id_impl() { return ::pthread_self(); }
135 return uint64_t(pthread_self());
180 ::pthread_setname_np(::pthread_self(), NameStr.data());
184 ::pthread_set_name_np(::pthread_self(), NameStr.data());
186 ::pthread_setname_np(::pthread_self(), "%s",
235 ::pthread_getname_np(::pthread_self(), buf, len);
241 ::pthread_get_name_np(::pthread_self(), buf, len);
248 if (0 == ::pthread_getname_np(::pthread_self(), Buffer, len))
265 pthread_self(),
/freebsd/sys/contrib/openzfs/lib/libzpool/
H A Dkernel.c210 mp->m_owner = pthread_self(); in mutex_enter()
218 mp->m_owner = pthread_self(); in mutex_enter_check_return()
227 mp->m_owner = pthread_self(); in mutex_tryenter()
271 rwlp->rw_owner = pthread_self(); in rw_enter()
300 rwlp->rw_owner = pthread_self(); in rw_tryenter()
351 mp->m_owner = pthread_self(); in cv_wait()
384 mp->m_owner = pthread_self(); in cv_timedwait()
424 mp->m_owner = pthread_self(); in cv_timedwait_hires()
609 (uintmax_t)(uintptr_t)pthread_self()); in __dprintf()
/freebsd/contrib/ncurses/ncurses/tty/
H A Dlib_tstp.c293 if ((pthread_self) && (pthread_kill) && (pthread_equal)) in _nc_set_read_thread()
295 _nc_globals.read_thread = pthread_self(); in _nc_set_read_thread()
311 if (!pthread_equal(pthread_self(), _nc_globals.read_thread)) in handle_SIGWINCH()

12345