/external/libchrome/base/threading/ |
D | platform_thread_posix.cc | 140 return pthread_mach_thread_np(pthread_self()); in CurrentId() 148 return pthread_self(); in CurrentId() 150 return pthread_self(); in CurrentId() 153 return reinterpret_cast<int32_t>(pthread_self()); in CurrentId() 155 return pthread_self(); in CurrentId() 157 return reinterpret_cast<int64_t>(pthread_self()); in CurrentId() 163 return PlatformThreadRef(pthread_self()); in CurrentRef() 168 return PlatformThreadHandle(pthread_self()); in CurrentHandle()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/ |
D | 1-2.c | 96 threads[0] = pthread_self(); in prepare() 101 threads[1] = pthread_self(); in parent() 106 threads[2] = pthread_self(); in child() 142 if (!pthread_equal(pthread_self(), threads[2])) { in threaded() 156 if (!pthread_equal(pthread_self(), threads[1])) { in threaded()
|
/external/cronet/base/allocator/partition_allocator/partition_alloc_base/threading/ |
D | platform_thread_posix.cc | 81 return pthread_mach_thread_np(pthread_self()); in CurrentId() 118 return pthread_self(); in CurrentId() 120 return pthread_self(); in CurrentId() 122 return reinterpret_cast<int64_t>(pthread_self()); in CurrentId() 128 return PlatformThreadRef(pthread_self()); in CurrentRef()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedprio/ |
D | 1-1.c | 36 rc = pthread_setschedparam(pthread_self(), policy, &sparam); in a_thread_func() 41 rc = pthread_getschedparam(pthread_self(), &policy_1, &sparam); in a_thread_func() 52 rc = pthread_setschedprio(pthread_self(), priority + 1); in a_thread_func() 58 rc = pthread_getschedparam(pthread_self(), &policy_1, &sparam); in a_thread_func()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/ |
D | 4-1.c | 119 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &sp); in threaded() 129 check_param(pthread_self(), SCHED_RR, sp.sched_priority); in threaded() 134 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &sp); in threaded() 140 check_param(pthread_self(), SCHED_RR, sp.sched_priority - 1); in threaded()
|
/external/virglrenderer/src/mesa/util/ |
D | u_thread.h | 133 int ret = pthread_setname_np(pthread_self(), name); in u_thread_setname() 139 pthread_setname_np(pthread_self(), buf); in u_thread_setname() 142 pthread_set_name_np(pthread_self(), name); in u_thread_setname() 144 pthread_setname_np(pthread_self(), "%s", (void *)name); in u_thread_setname() 223 return util_set_thread_affinity(pthread_self(), mask, old_mask, in util_set_current_thread_affinity() 262 return util_thread_get_time_nano(pthread_self()); in util_current_thread_get_time_nano() 276 return pthread_equal(pthread_self(), thread); in u_thread_is_self()
|
/external/cronet/base/threading/ |
D | platform_thread_posix.cc | 216 return pthread_mach_thread_np(pthread_self()); in CurrentId() 258 return pthread_self(); in CurrentId() 260 return pthread_self(); in CurrentId() 263 return reinterpret_cast<int32_t>(pthread_self()); in CurrentId() 265 return pthread_self(); in CurrentId() 267 return reinterpret_cast<int64_t>(pthread_self()); in CurrentId() 273 return PlatformThreadRef(pthread_self()); in CurrentRef() 278 return PlatformThreadHandle(pthread_self()); in CurrentHandle()
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_platform_mac.cc | 77 uptr thread_identity = (uptr)pthread_self(); in cur_thread() 91 uptr thread_identity = (uptr)pthread_self(); in cur_thread_finalize() 134 if (thread == pthread_self()) { in my_pthread_introspection_hook() 145 if (thread == pthread_self()) { in my_pthread_introspection_hook() 167 main_thread_identity = (uptr)pthread_self(); in InitializePlatform()
|
/external/mesa3d/src/util/ |
D | u_thread.h | 107 pthread_setname_np(pthread_self(), name); in u_thread_setname() 109 pthread_set_name_np(pthread_self(), name); in u_thread_setname() 111 pthread_setname_np(pthread_self(), "%s", (void *)name); in u_thread_setname() 189 return util_set_thread_affinity(pthread_self(), mask, old_mask, in util_set_current_thread_affinity() 228 return util_thread_get_time_nano(pthread_self()); in util_current_thread_get_time_nano() 242 return pthread_equal(pthread_self(), thread); in u_thread_is_self()
|
/external/rust/crates/nix/test/sys/ |
D | test_pthread.rs | 6 let tid = pthread_self(); in test_pthread_self() 13 let tid = pthread_self(); in test_pthread_self() 20 pthread_kill(pthread_self(), None) in test_pthread_kill_none()
|
/external/webrtc/rtc_base/ |
D | platform_thread_types.cc | 42 return pthread_mach_thread_np(pthread_self()); in CurrentThreadId() 50 return static_cast<PlatformThreadId>(pthread_self()); in CurrentThreadId() 53 return reinterpret_cast<PlatformThreadId>(pthread_self()); in CurrentThreadId() 64 return pthread_self(); in CurrentThreadRef()
|
/external/ltp/testcases/kernel/mem/mtest06/ |
D | shmat1.c | 245 STR_SHMAT, pthread_self(), fsize); in shmat_shmdt() 266 STR_SHMAT, pthread_self(), map_address); in shmat_shmdt() 269 STR_SHMAT, pthread_self(), shm_ndx, (int)locargs[0]); in shmat_shmdt() 319 STR_WRITER, pthread_self(), map_address); in write_to_mem() 353 STR_READER, pthread_self(), map_address); in read_from_mem() 361 STR_READER, pthread_self(), (char *)map_address); in read_from_mem()
|
/external/ltp/testcases/open_posix_testsuite/functional/threads/schedule/ |
D | 1-2.c | 59 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in hi_prio_thread() 90 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in low_prio_thread() 118 SAFE_PFUNC(pthread_setschedparam(pthread_self(), SCHED_RR, ¶m)); in main() 119 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in main()
|
D | 1-1.c | 68 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in hi_prio_thread() 94 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in low_prio_thread() 129 SAFE_PFUNC(pthread_setschedparam(pthread_self(), SCHED_RR, ¶m)); in main()
|
/external/webrtc/rtc_base/synchronization/ |
D | mutex_pthread.h | 69 latest_owner_ = pthread_self(); 75 RTC_CHECK(pthread_equal(latest_owner_, pthread_self())); 82 pthread_t latest_owner_ = pthread_self();
|
/external/libusb/libusb/os/ |
D | threads_posix.c | 103 tid = (int)pthread_mach_thread_np(pthread_self()); in usbi_get_tid() 106 tid = get_pthread_thread_id(pthread_self()); in usbi_get_tid() 125 tid = (int)(intptr_t)pthread_self(); in usbi_get_tid()
|
/external/ltp/testcases/kernel/syscalls/tgkill/ |
D | tgkill01.c | 31 sigusr1_thread = pthread_self(); in sigusr1_handler() 82 sigusr1_thread = pthread_self(); in run() 90 while (pthread_equal(sigusr1_thread, pthread_self())) in run()
|
/external/ImageMagick/MagickCore/ |
D | thread-private.h | 72 return(pthread_self()); in GetMagickThreadId() 94 magick_thread.id=pthread_self(); in GetMagickThreadSignature() 107 if (pthread_equal(id,pthread_self()) != 0) in IsMagickThreadEqual()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/ |
D | 3-1.c | 82 set_priority(pthread_self(), TRD_POLICY, priority); in fn_rd() 117 set_priority(pthread_self(), TRD_POLICY, priority); in fn_wr_1() 154 set_priority(pthread_self(), TRD_POLICY, priority); in fn_wr_2() 196 set_priority(pthread_self(), TRD_POLICY, priority); in main()
|
/external/cronet/third_party/libxml/src/ |
D | threads.c | 74 #pragma weak pthread_self macro 316 if (pthread_equal(tok->tid, pthread_self())) { in xmlRMutexLock() 327 tok->tid = pthread_self(); in xmlRMutexLock() 658 id = pthread_self(); in xmlGetThreadId() 689 return (pthread_equal(mainthread,pthread_self())); in xmlIsMainThread() 771 (pthread_self != NULL) && in xmlInitThreadsInternal() 777 mainthread = pthread_self(); in xmlInitThreadsInternal()
|
/external/libxml2/ |
D | threads.c | 74 #pragma weak pthread_self macro 316 if (pthread_equal(tok->tid, pthread_self())) { in xmlRMutexLock() 327 tok->tid = pthread_self(); in xmlRMutexLock() 658 id = pthread_self(); in xmlGetThreadId() 689 return (pthread_equal(mainthread,pthread_self())); in xmlIsMainThread() 771 (pthread_self != NULL) && in xmlInitThreadsInternal() 777 mainthread = pthread_self(); in xmlInitThreadsInternal()
|
/external/ltp/testcases/open_posix_testsuite/functional/threads/condvar/ |
D | pthread_cond_wait_2.c | 61 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in hi_prio_thread() 91 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in low_prio_thread() 123 SAFE_PFUNC(pthread_setschedparam(pthread_self(), POLICY, ¶m)); in main()
|
D | pthread_cond_wait_1.c | 61 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in hi_prio_thread() 91 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in low_prio_thread() 123 SAFE_PFUNC(pthread_setschedparam(pthread_self(), POLICY, ¶m)); in main()
|
/external/cronet/base/profiler/ |
D | sampling_profiler_thread_token.cc | 20 return {id, pthread_self()}; in GetSamplingProfilerCurrentThreadToken() 23 GetThreadStackBaseAddress(id, pthread_self()); in GetSamplingProfilerCurrentThreadToken()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/ |
D | Threading.inc | 112 return uint64_t(pthread_self()); 158 ::pthread_setname_np(::pthread_self(), NameStr.data()); 162 ::pthread_set_name_np(::pthread_self(), NameStr.data()); 164 ::pthread_setname_np(::pthread_self(), "%s", 213 ::pthread_getname_np(::pthread_self(), buf, len); 219 ::pthread_get_name_np(::pthread_self(), buf, len); 226 if (0 == ::pthread_getname_np(::pthread_self(), Buffer, len)) 243 pthread_self(),
|