Home
last modified time | relevance | path

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

12345678

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/
H A D1-2.c96 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()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/
H A D4-1.c119 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()
H A D1-1.c26 rc = pthread_setschedparam(pthread_self(), policy, &sparam); in a_thread_func()
31 rc = pthread_getschedparam(pthread_self(), &policy_1, &sparam); in a_thread_func()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedprio/
H A D1-1.c36 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()
/third_party/mesa3d/src/util/
H A Du_thread.h135 int ret = pthread_setname_np(pthread_self(), name); in u_thread_setname()
141 pthread_setname_np(pthread_self(), buf); in u_thread_setname()
144 pthread_set_name_np(pthread_self(), name); in u_thread_setname()
146 pthread_setname_np(pthread_self(), "%s", (void *)name); in u_thread_setname()
225 return util_set_thread_affinity(pthread_self(), mask, old_mask, in util_set_current_thread_affinity()
265 return util_thread_get_time_nano(pthread_self()); in util_current_thread_get_time_nano()
279 return pthread_equal(pthread_self(), thread); in u_thread_is_self()
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_pthrd_test.cpp43 EXPECT_EQ(0, pthread_setname_np(pthread_self(), "shortname")); in PthreadNameNp()
45 EXPECT_EQ(0, pthread_getname_np(pthread_self(), name, sizeof(name))); in PthreadNameNp()
48 EXPECT_EQ(0, pthread_setname_np(pthread_self(), "uselongnametest")); in PthreadNameNp()
49 EXPECT_EQ(0, pthread_getname_np(pthread_self(), name, sizeof(name))); in PthreadNameNp()
52 EXPECT_EQ(ERANGE, pthread_setname_np(pthread_self(), "namecannotoversixth")); in PthreadNameNp()
54 EXPECT_EQ(0, pthread_getname_np(pthread_self(), name, BUF_LEN)); in PthreadNameNp()
55 EXPECT_EQ(ERANGE, pthread_getname_np(pthread_self(), name, BUF_LEN - 1)); in PthreadNameNp()
265 EXPECT_EQ(0, pthread_kill(pthread_self(), 0)); in HWTEST_F()
275 EXPECT_EQ(EINVAL, pthread_kill(pthread_self(), -6)); in HWTEST_F()
326 EXPECT_EQ(EINVAL, pthread_setschedparam(pthread_self(), in HWTEST_F()
[all...]
/third_party/rust/crates/nix/test/sys/
H A Dtest_pthread.rs6 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()
/third_party/ltp/testcases/kernel/mem/mtest06/
H A Dshmat1.c245 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()
/third_party/ltp/testcases/open_posix_testsuite/functional/threads/schedule/
H A D1-2.c59 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); in hi_prio_thread()
90 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); in low_prio_thread()
118 SAFE_PFUNC(pthread_setschedparam(pthread_self(), SCHED_RR, &param)); in main()
119 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); in main()
H A D1-1.c68 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); in hi_prio_thread()
94 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); in low_prio_thread()
129 SAFE_PFUNC(pthread_setschedparam(pthread_self(), SCHED_RR, &param)); in main()
/third_party/musl/libc-test/src/functionalext/supplement/thread/
H A Dpthread_equal.c23 g_pthd_1 = pthread_self(); in threadfuncA()
29 pthread_t pth = pthread_self(); in threadfuncB()
39 int ret = pthread_equal(g_pthd_2, pthread_self()); in threadfuncC()
/third_party/libuv/test/
H A Dtest-thread-priority.c91 ASSERT_OK(uv_thread_getpriority(pthread_self(), &priority)); in TEST_IMPL()
93 ASSERT_OK(uv_thread_setpriority(pthread_self(), UV_THREAD_PRIORITY_LOWEST)); in TEST_IMPL()
94 ASSERT_OK(uv_thread_getpriority(pthread_self(), &priority)); in TEST_IMPL()
/third_party/ltp/testcases/kernel/syscalls/tgkill/
H A Dtgkill01.c31 sigusr1_thread = pthread_self(); in sigusr1_handler()
82 sigusr1_thread = pthread_self(); in run()
90 while (pthread_equal(sigusr1_thread, pthread_self())) in run()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/
H A D3-1.c82 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()
/third_party/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 static pthread_t new_th2; /* Global thread to hold the value of when pthread_self
31 new_th2 = pthread_self(); in a_thread_func()
60 if (pthread_equal(new_th1, pthread_self()) != 0) { in main()
/third_party/libphonenumber/cpp/src/phonenumbers/base/
H A Dthread_checker.h45 ThreadChecker() : thread_id_(pthread_self()) {} in ThreadChecker()
48 return thread_id_ == pthread_self(); in CalledOnValidThread()
/third_party/rust/crates/nix/src/sys/
H A Dpthread.rs13 /// [`pthread_self(3)`](https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_self.html)
15 /// The thread ID returned by `pthread_self()` is not the same thing as
18 pub fn pthread_self() -> Pthread { in pthread_self() functions
19 unsafe { libc::pthread_self() } in pthread_self()
/third_party/ltp/testcases/open_posix_testsuite/functional/threads/condvar/
H A Dpthread_cond_wait_2.c61 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); in hi_prio_thread()
91 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); in low_prio_thread()
123 SAFE_PFUNC(pthread_setschedparam(pthread_self(), POLICY, &param)); in main()
H A Dpthread_cond_wait_1.c61 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); in hi_prio_thread()
91 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); in low_prio_thread()
123 SAFE_PFUNC(pthread_setschedparam(pthread_self(), POLICY, &param)); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/
H A D2-2.c81 set_priority(pthread_self(), TRD_POLICY, priority); in fn_rd()
112 set_priority(pthread_self(), TRD_POLICY, priority); in fn_wr()
149 set_priority(pthread_self(), TRD_POLICY, priority); in main()
H A D2-1.c81 set_priority(pthread_self(), TRD_POLICY, priority); in fn_rd()
112 set_priority(pthread_self(), TRD_POLICY, priority); in fn_wr()
149 set_priority(pthread_self(), TRD_POLICY, priority); in main()
H A D2-3.c81 set_priority(pthread_self(), TRD_POLICY, priority); in fn_rd()
112 set_priority(pthread_self(), TRD_POLICY, priority); in fn_wr()
150 set_priority(pthread_self(), TRD_POLICY, priority); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/
H A D2-4.c41 rc = pthread_getschedparam(pthread_self(), &policy, &param); in thread()
65 rc = pthread_setschedparam(pthread_self(), POLICY, &param); in main()
H A D2-3.c41 rc = pthread_getschedparam(pthread_self(), &policy, &param); in thread()
77 rc = pthread_setschedparam(pthread_self(), POLICY, &param); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/
H A D1-2.c40 rc = pthread_setschedparam(pthread_self(), policy, &sparam); in thread_func()
45 rc = pthread_getschedparam(pthread_self(), &policy_1, &sparam); in thread_func()

Completed in 9 milliseconds

12345678