/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/ |
H A D | 6-1-buildonly.c | 10 pthread_t pthread_self(void); 17 pthread_t ptid = pthread_self();
|
/external/skia/src/core/ |
H A D | SkThreadID.cpp | 15 SkThreadID SkGetThreadID() { return (int64_t)pthread_self(); }
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_self/ |
H A D | 1-1.c | 8 * Test that pthread_self() 14 * 2. The function that the thread calls will call pthread_self() and store 26 pthread_t new_th2; /* Global thread to hold the value of when pthread_self 31 new_th2 = pthread_self(); 60 if (pthread_equal(new_th1, pthread_self()) != 0) {
|
/external/compiler-rt/test/msan/ |
H A D | pthread_getattr_np_deadlock.cc | 10 int res = pthread_getattr_np(pthread_self(), &attr);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/ |
H A D | 2-1.c | 25 main_thread = pthread_self();
|
H A D | 3-1.c | 23 main_thread = pthread_self();
|
H A D | 7-1.c | 25 main_thread = pthread_self();
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/ |
H A D | 4-1.c | 122 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &sp); 132 check_param(pthread_self(), SCHED_RR, sp.sched_priority); 137 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &sp); 143 check_param(pthread_self(), SCHED_RR, sp.sched_priority - 1);
|
H A D | 1-1.c | 26 rc = pthread_setschedparam(pthread_self(), policy, &sparam); 31 rc = pthread_getschedparam(pthread_self(), &policy_1, &sparam);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedprio/ |
H A D | 1-1.c | 36 rc = pthread_setschedparam(pthread_self(), policy, &sparam); 41 rc = pthread_getschedparam(pthread_self(), &policy_1, &sparam); 52 rc = pthread_setschedprio(pthread_self(), priority + 1); 58 rc = pthread_getschedparam(pthread_self(), &policy_1, &sparam);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/ |
H A D | 1-2.c | 98 threads[0] = pthread_self(); 103 threads[1] = pthread_self(); 108 threads[2] = pthread_self(); 144 if (!pthread_equal(pthread_self(), threads[2])) { 158 if (!pthread_equal(pthread_self(), threads[1])) {
|
/external/compiler-rt/test/tsan/ |
H A D | thread_name2.cc | 21 pthread_setname_np(pthread_self(), "foobar2");
|
H A D | signal_errno.cc | 37 mainth = pthread_self();
|
/external/ImageMagick/MagickCore/ |
H A D | thread-private.h | 63 return(pthread_self()); 85 magick_thread.id=pthread_self(); 98 if (pthread_equal(id,pthread_self()) != 0)
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
H A D | 4-1.c | 15 * pthread_self(). 17 * and the one from pthread_self()). 45 /* If the value of pthread_self() and the return value from 58 self_th = pthread_self();
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/ |
H A D | 1-1.c | 35 rc = pthread_getschedparam(pthread_self(), &policy, &sparam);
|
H A D | 1-2.c | 40 rc = pthread_setschedparam(pthread_self(), policy, &sparam); 45 rc = pthread_getschedparam(pthread_self(), &policy_1, &sparam);
|
/external/ltp/testcases/open_posix_testsuite/functional/threads/schedule/ |
H A D | 1-2.c | 59 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); 90 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); 118 SAFE_PFUNC(pthread_setschedparam(pthread_self(), SCHED_RR, ¶m)); 119 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m));
|
/external/valgrind/drd/tests/ |
H A D | monitor_example.cpp | 107 m_owner = pthread_self(); 119 assert(m_owner == pthread_self()); 123 m_owner = pthread_self(); 139 result = m_recursion_count > 0 && m_owner == pthread_self();
|
/external/libchrome/base/threading/ |
H A D | platform_thread_linux.cc | 45 pthread_setschedparam(pthread_self(), SCHED_RR, &kRealTimePrio) == 0; 55 if (pthread_getschedparam(pthread_self(), &maybe_sched_rr,
|
H A D | platform_thread_posix.cc | 134 return pthread_mach_thread_np(pthread_self()); 140 return pthread_self(); 142 return pthread_self(); 145 return reinterpret_cast<int32_t>(pthread_self()); 147 return reinterpret_cast<int64_t>(pthread_self()); 153 return PlatformThreadRef(pthread_self()); 158 return PlatformThreadHandle(pthread_self());
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/ |
H A D | 2-3.c | 41 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); 77 rc = pthread_setschedparam(pthread_self(), POLICY, ¶m);
|
H A D | 2-4.c | 41 rc = pthread_getschedparam(pthread_self(), &policy, ¶m); 65 rc = pthread_setschedparam(pthread_self(), POLICY, ¶m);
|
/external/valgrind/memcheck/tests/ |
H A D | threadname.c | 30 pthread_setname_np(pthread_self(), threadname); 46 pthread_setname_np(pthread_self(), threadname);
|
/external/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_platform_mac.cc | 69 // shadow memory of the pointer returned by pthread_self() to store a pointer to 77 uptr thread_identity = (uptr)pthread_self(); 91 uptr thread_identity = (uptr)pthread_self(); 120 // The `thread == pthread_self()` check indicates this is actually a worker 134 if (thread == pthread_self()) { 145 if (thread == pthread_self()) { 167 main_thread_identity = (uptr)pthread_self();
|