Home
last modified time | relevance | path

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

1234

/openbsd/src/regress/lib/libpthread/errno/
Derrno.c65 ASSERT(pthread_equal(t1_tid, pthread_self())); in act_handler()
70 ASSERT(pthread_equal(t1_tid, pthread_self())); in act_handler()
76 ASSERT(pthread_equal(t2_tid, pthread_self())); in act_handler()
94 t1_tid = pthread_self(); in tmain()
105 ASSERT(pthread_equal(t1_tid, pthread_self())); in tmain()
122 main_tid = pthread_self(); in main()
165 ASSERT(pthread_equal(main_tid, pthread_self())); in main()
174 ASSERT(pthread_equal(main_tid, pthread_self())); in main()
183 ASSERT(pthread_equal(main_tid, pthread_self())); in main()
189 ASSERT(pthread_equal(main_tid, pthread_self())); in main()
/openbsd/src/regress/lib/libpthread/getaddrinfo/
Dgetaddrinfo.c76 printf("Starting thread %p\n", pthread_self());
80 printf("error on thread %p\n", pthread_self());
85 pthread_self(), res->ai_canonname, h);
/openbsd/src/regress/lib/libpthread/pthread_rwlock2/
Dpthread_rwlock2.c40 pthread_t self = pthread_self(); in set_msg()
55 pthread_t self = pthread_self(); in print_msg()
70 pthread_t self = pthread_self(); in run()
/openbsd/src/lib/librthread/
Drthread_spin_lock.c62 pthread_t self = pthread_self(); in pthread_spin_trylock()
82 pthread_t self = pthread_self(); in pthread_spin_lock()
101 pthread_t self = pthread_self(); in pthread_spin_unlock()
Drthread_rwlock.c118 pthread_t self = pthread_self(); in _rthread_rwlock_timedrdlock()
195 pthread_t self = pthread_self(); in _rthread_rwlock_timedwrlock()
259 pthread_t self = pthread_self(); in pthread_rwlock_unlock()
Drthread_rwlock_compat.c98 pthread_t thread = pthread_self(); in _rthread_rwlock_rdlock()
157 pthread_t thread = pthread_self(); in _rthread_rwlock_wrlock()
222 pthread_t thread = pthread_self(); in pthread_rwlock_unlock()
Drthread_np.c47 if (thread != pthread_self()) in pthread_set_name_np()
57 if (thread != pthread_self()) in pthread_get_name_np()
Drthread.c196 pthread_t thread = pthread_self(); in _rthread_init()
372 pthread_t self = pthread_self(); in pthread_create()
501 pthread_t self = pthread_self(); in pthread_cleanup_push()
516 pthread_t self = pthread_self(); in pthread_cleanup_pop()
575 pthread_t self = pthread_self(); in _rthread_dl_lock()
/openbsd/src/lib/libc/thread/
Drthread_file.c165 p->owner = pthread_self(); in do_lock()
177 pthread_t self = pthread_self(); in _thread_flockfile()
241 } else if (p->owner == pthread_self()) { in _thread_ftrylockfile()
281 if ((p = find_lock(idx, fp)) != NULL && p->owner == pthread_self()) { in _thread_funlockfile()
Drthread.c112 pthread_self(void) in pthread_self() function
119 DEF_STRONG(pthread_self);
126 pthread_t thread = pthread_self(); in pthread_exit()
Drthread_mutex.c99 pthread_t self = pthread_self(); in _rthread_mutex_trylock()
139 pthread_t self = pthread_self(); in _rthread_mutex_timedlock()
229 pthread_t self = pthread_self(); in pthread_mutex_unlock()
/openbsd/src/gnu/usr.bin/binutils/gdb/testsuite/gdb.threads/
Dpthreads.c81 if (verbose) printf("thread1 %d\n", pthread_self ()); in thread1()
98 if (verbose) printf("thread2 %d\n", pthread_self ()); in thread2()
165 if (verbose) printf("top %d\n", pthread_self ());
/openbsd/src/gnu/gcc/gcc/
Dgthr-posix95.h75 __gthrw(pthread_self)
267 pthread_t thread_id = __gthrw_(pthread_self) (); in __gthread_objc_thread_set_priority()
311 if (__gthrw_(pthread_getschedparam) (__gthrw_(pthread_self) (), &policy, &params) == 0) in __gthread_objc_thread_get_priority()
347 return (objc_thread_t) __gthrw_(pthread_self) (); in __gthread_objc_thread_id()
607 pthread_t me = __gthrw_(pthread_self) (); in __gthread_recursive_mutex_lock()
625 pthread_t me = __gthrw_(pthread_self) (); in __gthread_recursive_mutex_trylock()
Dgthr-dce.h98 __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()
Dgthr-posix.h120 __gthrw3(pthread_self)
129 __gthrw(pthread_self)
304 pthread_t thread_id = __gthrw_(pthread_self) (); in __gthread_objc_thread_set_priority()
348 if (__gthrw_(pthread_getschedparam) (__gthrw_(pthread_self) (), &policy, &params) == 0) in __gthread_objc_thread_get_priority()
384 return (objc_thread_t) __gthrw_(pthread_self) (); in __gthread_objc_thread_id()
/openbsd/src/distrib/special/libstubs/
Dpthread_once.c38 pthread_self(void) in pthread_self() function
43 DEF_STRONG(pthread_self);
/openbsd/src/lib/libssl/
Dssl_init.c39 ssl_init_thread = pthread_self(); in OPENSSL_init_ssl_internal()
48 if (pthread_equal(pthread_self(), ssl_init_thread)) in OPENSSL_init_ssl()
/openbsd/src/gnu/usr.bin/gcc/gcc/
Dgthr-dce.h86 #pragma weak pthread_self macro
187 if (pthread_setprio (pthread_self (), sys_priority) >= 0) in __gthread_objc_thread_set_priority()
202 if ((sys_priority = pthread_getprio (pthread_self ())) >= 0) in __gthread_objc_thread_get_priority()
246 pthread_t self = pthread_self (); in __gthread_objc_thread_id()
Dgthr-posix.h70 #pragma weak pthread_self macro
185 pthread_t thread_id = pthread_self (); in __gthread_objc_thread_set_priority()
227 if (pthread_getschedparam (pthread_self (), &policy, &params) == 0) in __gthread_objc_thread_get_priority()
262 return (objc_thread_t) pthread_self (); in __gthread_objc_thread_id()
/openbsd/src/lib/libcrypto/
Dcrypto_init.c49 crypto_init_thread = pthread_self(); in OPENSSL_init_crypto_internal()
64 if (pthread_equal(pthread_self(), crypto_init_thread)) in OPENSSL_init_crypto()
/openbsd/src/regress/lib/libpthread/pthread_specific/
Dpthread_specific.c53 CHECKr(pthread_setspecific(key, pthread_self())); in run_thread()
55 ASSERT(p == pthread_self()); in run_thread()
/openbsd/src/gnu/gcc/libgomp/config/posix95/
Dlock.c84 pthread_t me = pthread_self (); in omp_set_nest_lock()
110 pthread_t me = pthread_self (); in omp_test_nest_lock()
/openbsd/src/gnu/llvm/llvm/lib/Support/Unix/
DThreading.inc109 pthread_t llvm_thread_get_current_id_impl() { return ::pthread_self(); }
132 return uint64_t(pthread_self());
177 ::pthread_setname_np(::pthread_self(), NameStr.data());
181 ::pthread_set_name_np(::pthread_self(), NameStr.data());
183 ::pthread_setname_np(::pthread_self(), "%s",
232 ::pthread_getname_np(::pthread_self(), buf, len);
238 ::pthread_get_name_np(::pthread_self(), buf, len);
245 if (0 == ::pthread_getname_np(::pthread_self(), Buffer, len))
262 pthread_self(),
/openbsd/src/regress/sys/kern/signal/sigprof/
Dsigprof.c53 self = pthread_self(); in handler()
85 threads[0] = pthread_self(); in main()
/openbsd/src/gnu/llvm/compiler-rt/lib/asan/
Dasan_mac.cpp163 block, pthread_self()); in asan_dispatch_call_block_and_release()
196 asan_ctxt, pthread_self()); \
227 asan_ctxt, pthread_self()); in INTERCEPTOR()

1234