Searched refs:pthread_self (Results 1 - 25 of 182) sorted by relevance

12345678

/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/
H A D6-1-buildonly.c10 pthread_t pthread_self(void);
17 pthread_t ptid = pthread_self();
/external/skia/src/core/
H A DSkThreadID.cpp15 SkThreadID SkGetThreadID() { return (int64_t)pthread_self(); }
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_self/
H A D1-1.c8 * 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 Dpthread_getattr_np_deadlock.cc10 int res = pthread_getattr_np(pthread_self(), &attr);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/
H A D2-1.c25 main_thread = pthread_self();
H A D3-1.c23 main_thread = pthread_self();
H A D7-1.c25 main_thread = pthread_self();
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/
H A D4-1.c122 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 D1-1.c26 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 D1-1.c36 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 D1-2.c98 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 Dthread_name2.cc21 pthread_setname_np(pthread_self(), "foobar2");
H A Dsignal_errno.cc37 mainth = pthread_self();
/external/ImageMagick/MagickCore/
H A Dthread-private.h63 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 D4-1.c15 * 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 D1-1.c35 rc = pthread_getschedparam(pthread_self(), &policy, &sparam);
H A D1-2.c40 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 D1-2.c59 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param));
90 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param));
118 SAFE_PFUNC(pthread_setschedparam(pthread_self(), SCHED_RR, &param));
119 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param));
/external/valgrind/drd/tests/
H A Dmonitor_example.cpp107 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 Dplatform_thread_linux.cc45 pthread_setschedparam(pthread_self(), SCHED_RR, &kRealTimePrio) == 0;
55 if (pthread_getschedparam(pthread_self(), &maybe_sched_rr,
H A Dplatform_thread_posix.cc134 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 D2-3.c41 rc = pthread_getschedparam(pthread_self(), &policy, &param);
77 rc = pthread_setschedparam(pthread_self(), POLICY, &param);
H A D2-4.c41 rc = pthread_getschedparam(pthread_self(), &policy, &param);
65 rc = pthread_setschedparam(pthread_self(), POLICY, &param);
/external/valgrind/memcheck/tests/
H A Dthreadname.c30 pthread_setname_np(pthread_self(), threadname);
46 pthread_setname_np(pthread_self(), threadname);
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform_mac.cc69 // 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();

Completed in 514 milliseconds

12345678