Home
last modified time | relevance | path

Searched refs:pthread_setschedparam (Results 1 - 25 of 53) sorted by relevance

123

/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()
134 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &sp); in threaded()
H A D5-1.c22 * -> kill a thread which calls pthread_setschedparam
157 /* Test function -- calls pthread_setschedparam() and checks that EINTR is never returned. */
180 ret = pthread_setschedparam(*(pthread_t *) arg, pol1, &sp1); in test()
186 ret = pthread_setschedparam(*(pthread_t *) arg, pol2, &sp2); in test()
H A D1-1.c10 /* Set the sched parameter with pthread_setschedparam() then get */
26 rc = pthread_setschedparam(pthread_self(), policy, &sparam); in a_thread_func()
28 printf("Error at pthread_setschedparam: rc=%d\n", rc); in a_thread_func()
H A D1-2.c140 ret = pthread_setschedparam(*(pthread_t *) arg, SCHED_RR, &sp); in changer()
/third_party/musl/libc-test/src/functionalext/thread/
H A Dpthread_rwlock_wrlock.c42 if (pthread_setschedparam(pthread_self(), SCHED_FIFO, &param) != 0) { in RwlockClockRealTimeOut2()
43 t_printf("pthread_setschedparam fail \n"); in RwlockClockRealTimeOut2()
91 if (pthread_setschedparam(pthread_self(), SCHED_FIFO, &param) != 0) { in RwlockClockMonotonicTimeOut2()
92 t_printf("pthread_setschedparam fail\n"); in RwlockClockMonotonicTimeOut2()
140 if (pthread_setschedparam(pthread_self(), SCHED_FIFO, &param) != 0) { in RwlockMonotonicTime2()
141 t_printf("pthread_setschedparam fail\n"); in RwlockMonotonicTime2()
/third_party/musl/porting/liteos_m/user/src/thread/
H A Dpthread_setschedparam.c5 _LIBC_TEXT_SECTION int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *param) in pthread_setschedparam() function
/third_party/musl/porting/liteos_a/user/src/thread/
H A Dpthread_setschedparam.c4 int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *param) in pthread_setschedparam() function
/third_party/musl/src/thread/
H A Dpthread_setschedparam.c7 int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *param) in pthread_setschedparam() function
/third_party/musl/libc-test/src/functionalext/supplement/thread/
H A Dpthread_setschedparam.c34 * @tc.desc : Verify pthread_setschedparam process success when scheduling policy is SCHED_OTHER and priority is 0
44 int32_t ret = pthread_setschedparam(tid, SCHED_OTHER, &sched); in pthread_setschedparam_0100()
/third_party/musl/porting/liteos_m/user/include/
H A Dusr_lib_define.h57 #define pthread_setschedparam b_pthread_setschedparam macro
H A Dusr_lib_ops.h59 int (*pthread_setschedparam)(pthread_t thread, int policy, const struct sched_param *param); member
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/
H A D2-4.c65 rc = pthread_setschedparam(pthread_self(), POLICY, &param); in main()
67 printf(ERROR_PREFIX "pthread_setschedparam\n"); in main()
H A D2-3.c77 rc = pthread_setschedparam(pthread_self(), POLICY, &param); in main()
79 printf(ERROR_PREFIX "pthread_setschedparam\n"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/
H A D1-2.c13 * the value specified by the most recent pthread_setschedparam(),
20 /* Set the sched parameter with pthread_setschedparam then get */
40 rc = pthread_setschedparam(pthread_self(), policy, &sparam); in thread_func()
42 ERR_MSG("pthread_setschedparam()", rc); in thread_func()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedprio/
H A D1-1.c13 * the value specified by the most recent pthread_setschedparam(),
36 rc = pthread_setschedparam(pthread_self(), policy, &sparam); in a_thread_func()
38 printf("Error at pthread_setschedparam: rc=%d\n", rc); in a_thread_func()
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_pthrd_test.cpp302 EXPECT_DEATH(pthread_setschedparam(deadThread, loadPolicy, &pthreadSchedParam), ".*"); in HWTEST_F()
315 EXPECT_DEATH(pthread_setschedparam(nullThread, loadPolicy, &pthreadSchedParam), ".*"); in HWTEST_F()
326 EXPECT_EQ(EINVAL, pthread_setschedparam(pthread_self(), -6, &pthreadSchedParam)); in HWTEST_F()
/third_party/pulseaudio/src/pulse/
H A Dutil.c395 if (pthread_setschedparam(pthread_self(), SCHED_RR|SCHED_RESET_ON_FORK, &sp) == 0) { in set_scheduler()
401 if (pthread_setschedparam(pthread_self(), SCHED_RR, &sp) == 0) { in set_scheduler()
/third_party/ltp/testcases/open_posix_testsuite/functional/threads/condvar/
H A Dpthread_cond_wait_2.c123 SAFE_PFUNC(pthread_setschedparam(pthread_self(), POLICY, &param)); in main()
H A Dpthread_cond_wait_1.c123 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.c67 if (pthread_setschedparam(pid, policy, &sched_param) == -1) { in set_priority()
H A D2-1.c67 if (pthread_setschedparam(pid, policy, &sched_param) == -1) { in set_priority()
H A D2-3.c67 if (pthread_setschedparam(pid, policy, &sched_param) == -1) { in set_priority()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
H A D16-1.c122 rc = pthread_setschedparam(pthread_self(), SCHED_FIFO, &sp); in threaded()
124 printf("Failed: pthread_setschedparam(SCHED_FIFO), root?\n"); in threaded()
/third_party/ltp/testcases/open_posix_testsuite/functional/threads/schedule/
H A D1-1.c129 SAFE_PFUNC(pthread_setschedparam(pthread_self(), SCHED_RR, &param)); in main()
H A D1-2.c118 SAFE_PFUNC(pthread_setschedparam(pthread_self(), SCHED_RR, &param)); in main()

Completed in 14 milliseconds

123