| /openbsd/src/regress/lib/libpthread/errno/ |
| D | errno.c | 65 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/ |
| D | getaddrinfo.c | 76 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/ |
| D | pthread_rwlock2.c | 40 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/ |
| D | rthread_spin_lock.c | 62 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()
|
| D | rthread_rwlock.c | 118 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()
|
| D | rthread_rwlock_compat.c | 98 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()
|
| D | rthread_np.c | 47 if (thread != pthread_self()) in pthread_set_name_np() 57 if (thread != pthread_self()) in pthread_get_name_np()
|
| D | rthread.c | 196 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/ |
| D | rthread_file.c | 165 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()
|
| D | rthread.c | 112 pthread_self(void) in pthread_self() function 119 DEF_STRONG(pthread_self); 126 pthread_t thread = pthread_self(); in pthread_exit()
|
| D | rthread_mutex.c | 99 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/ |
| D | pthreads.c | 81 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/ |
| D | gthr-posix95.h | 75 __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, ¶ms) == 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()
|
| 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()
|
| D | gthr-posix.h | 120 __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, ¶ms) == 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/ |
| D | pthread_once.c | 38 pthread_self(void) in pthread_self() function 43 DEF_STRONG(pthread_self);
|
| /openbsd/src/lib/libssl/ |
| D | ssl_init.c | 39 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/ |
| D | gthr-dce.h | 86 #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()
|
| D | gthr-posix.h | 70 #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, ¶ms) == 0) in __gthread_objc_thread_get_priority() 262 return (objc_thread_t) pthread_self (); in __gthread_objc_thread_id()
|
| /openbsd/src/lib/libcrypto/ |
| D | crypto_init.c | 49 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/ |
| D | pthread_specific.c | 53 CHECKr(pthread_setspecific(key, pthread_self())); in run_thread() 55 ASSERT(p == pthread_self()); in run_thread()
|
| /openbsd/src/gnu/gcc/libgomp/config/posix95/ |
| 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()
|
| /openbsd/src/gnu/llvm/llvm/lib/Support/Unix/ |
| D | Threading.inc | 109 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/ |
| D | sigprof.c | 53 self = pthread_self(); in handler() 85 threads[0] = pthread_self(); in main()
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/asan/ |
| D | asan_mac.cpp | 163 block, pthread_self()); in asan_dispatch_call_block_and_release() 196 asan_ctxt, pthread_self()); \ 227 asan_ctxt, pthread_self()); in INTERCEPTOR()
|