Home
last modified time | relevance | path

Searched refs:SCHED_RR (Results 1 - 25 of 82) sorted by relevance

1234

/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/
H A DIt_posix_pthread_205.c50 priority = sched_get_priority_max(SCHED_RR) - 1; in PthreadF01()
52 priority = sched_get_priority_max(SCHED_RR); in PthreadF01()
57 ICUNIT_TRACK_EQUAL(policy, SCHED_RR, policy); in PthreadF01()
68 schedparam.sched_priority = sched_get_priority_max(SCHED_RR) - 1; in PthreadF02()
71 schedparam.sched_priority = sched_get_priority_max(SCHED_RR); in PthreadF02()
75 ret = pthread_setschedparam(*(pthread_t *)arg, SCHED_RR, &schedparam); in PthreadF02()
H A DIt_posix_pthread_089.c63 rc = pthread_setschedparam(pthread_self(), SCHED_RR, &param); in PthreadF01()
69 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF01()
103 rc = pthread_setschedparam(pthread_self(), SCHED_RR, &param); in PthreadF02()
109 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF02()
143 rc = pthread_attr_setschedpolicy(&highAttr, SCHED_RR); in Testcase()
159 rc = pthread_attr_setschedpolicy(&lowAttr, SCHED_RR); in Testcase()
H A DIt_posix_pthread_088.c64 rc = pthread_setschedparam(pthread_self(), SCHED_RR, &param); in PthreadF01()
70 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF01()
102 rc = pthread_setschedparam(pthread_self(), SCHED_RR, &param); in PthreadF02()
108 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF02()
138 rc = pthread_attr_setschedpolicy(&highAttr, SCHED_RR); // in Testcase()
154 rc = pthread_attr_setschedpolicy(&lowAttr, SCHED_RR); // in Testcase()
H A DIt_posix_pthread_047.c50 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF01()
56 ret = pthread_setschedparam(g_newTh, SCHED_RR, &param); in PthreadF01()
64 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF01()
81 ret = pthread_attr_setschedpolicy(&attr, SCHED_RR); in Testcase()
96 ICUNIT_ASSERT_EQUAL(policy, SCHED_RR, policy); in Testcase()
H A DIt_posix_pthread_206.c47 g_pthreadSchedPolicy = SCHED_RR; in PthreadF01()
54 policy = SCHED_RR; in PthreadF01()
63 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &schedparam); in PthreadF01()
66 policy = SCHED_RR; in PthreadF01()
H A DIt_posix_pthread_044.c53 ICUNIT_GOTO_EQUAL(info->attr.schedpolicy, SCHED_RR, info->attr.schedpolicy, EXIT); in PthreadF02()
74 ICUNIT_GOTO_EQUAL(info->attr.schedpolicy, SCHED_RR, info->attr.schedpolicy, EXIT); in PthreadF01()
89 ret = pthread_setschedparam(newTh, SCHED_RR, &param); in PthreadF01()
117 ret = pthread_attr_setschedpolicy(&attr, SCHED_RR); // in Testcase()
H A DIt_posix_pthread_116.c49 UINT32 sched = SCHED_RR; in PthreadF01()
95 UINT32 sched = SCHED_RR; in Testcase()
H A DIt_posix_pthread_188.c68 paramTest.policy = SCHED_RR; in Testcase()
70 paramTest.policy_label = "SCHED_RR"; in Testcase()
80 g_pthreadSchedPolicy = SCHED_RR; in Testcase()
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/smoke/
H A DIt_posix_pthread_018.c72 ret = pthread_setschedparam(newTh, SCHED_RR, NULL); in Testcase()
76 ret = pthread_setschedparam(newTh, SCHED_RR, &param); in Testcase()
80 ret = pthread_setschedparam(newTh, SCHED_RR, &param); in Testcase()
84 ret = pthread_setschedparam(newTh, SCHED_RR, &param); in Testcase()
103 ret = pthread_setschedparam(newTh, SCHED_RR, &param); in Testcase()
106 ret = pthread_setschedparam(newTh + 9, SCHED_RR, &param); // 9, test for invalid param. in Testcase()
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/
H A Dshm_test_009.cpp48 param.sched_priority = sched_get_priority_max(SCHED_RR); in ChildProcess()
106 param.sched_priority = (sched_get_priority_min(SCHED_RR) + in Testcase()
107 sched_get_priority_max(SCHED_RR)) / 2; in Testcase()
108 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in Testcase()
127 param.sched_priority = sched_get_priority_min(SCHED_RR); in Testcase()
145 pthread_setschedparam(pthread_self(), SCHED_RR, &param); in Testcase() local
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/
H A DIt_posix_pthread_205.cpp43 priority = sched_get_priority_max(SCHED_RR) - 1; in pthread_f01()
45 priority = sched_get_priority_max(SCHED_RR); // priority = 31 in pthread_f01()
50 ICUNIT_TRACK_EQUAL(policy, SCHED_RR, policy); in pthread_f01()
61 schedparam.sched_priority = sched_get_priority_max(SCHED_RR) - 1; in pthread_f02()
64 schedparam.sched_priority = sched_get_priority_max(SCHED_RR); // priority = 31 in pthread_f02()
68 ret = pthread_setschedparam(*(pthread_t *)arg, SCHED_RR, &schedparam); in pthread_f02()
H A DIt_posix_pthread_089.cpp59 rc = pthread_setschedparam(pthread_self(), SCHED_RR, &param); in pthread_f01()
65 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in pthread_f01()
99 rc = pthread_setschedparam(pthread_self(), SCHED_RR, &param); in pthread_f02()
105 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in pthread_f02()
141 rc = pthread_attr_setschedpolicy(&highAttr, SCHED_RR); in Testcase()
157 rc = pthread_attr_setschedpolicy(&lowAttr, SCHED_RR); in Testcase()
H A DIt_posix_pthread_088.cpp59 rc = pthread_setschedparam(pthread_self(), SCHED_RR, &param); in pthread_f01()
65 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in pthread_f01()
96 rc = pthread_setschedparam(pthread_self(), SCHED_RR, &param); in pthread_f02()
102 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in pthread_f02()
131 rc = pthread_attr_setschedpolicy(&highAttr, SCHED_RR); // in Testcase()
147 rc = pthread_attr_setschedpolicy(&lowAttr, SCHED_RR); // in Testcase()
H A DIt_posix_pthread_044.cpp46 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); // in pthread_f02()
65 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); // in pthread_f01()
79 ret = pthread_setschedparam(newTh, SCHED_RR, &param); // in pthread_f01()
107 ICUNIT_ASSERT_EQUAL(policy, SCHED_RR, policy); // in Testcase()
112 ret = pthread_attr_setschedpolicy(&attr, SCHED_RR); // in Testcase()
H A DIt_posix_pthread_206.cpp40 g_pthreadSchedPolicy = SCHED_RR; in pthread_f01()
47 policy = SCHED_RR; in pthread_f01()
56 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &schedparam); in pthread_f01()
59 policy = SCHED_RR; in pthread_f01()
H A DIt_posix_pthread_188.cpp60 paramTest.policy = SCHED_RR; in Testcase()
62 paramTest.policy_label = "SCHED_RR"; in Testcase()
72 g_pthreadSchedPolicy = SCHED_RR; in Testcase()
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
H A Dprocess_test_043.cpp75 priority = sched_get_priority_max(SCHED_RR - count); in Testcase()
80 priority = sched_get_priority_max(SCHED_RR + count); in Testcase()
85 priority = sched_get_priority_min(SCHED_RR - count); in Testcase()
90 priority = sched_get_priority_min(SCHED_RR + count); in Testcase()
95 ret = sched_setscheduler(getpid(), SCHED_RR - count, &param); in Testcase()
100 ret = sched_setscheduler(getpid(), SCHED_RR + count, &param); in Testcase()
H A Dprocess_test_001.cpp80 ret = sched_get_priority_min(SCHED_RR); in Testcase()
93 ret = sched_get_priority_max(SCHED_RR); in Testcase()
113 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in Testcase()
119 ret = sched_setscheduler(1000, SCHED_RR, &param); // 1000, input the pid. in Testcase()
131 ICUNIT_ASSERT_EQUAL(ret, SCHED_RR, ret); in Testcase()
H A Dprocess_test_002.cpp36 #define CURRENT_PROCESS_POLICY SCHED_RR in Testcase()
55 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in Testcase()
/kernel/liteos_m/kal/posix/src/
H A Dpthread_attr.c46 attr->schedpolicy = SCHED_RR; in pthread_attr_init()
142 if ((attr != NULL) && (policy == SCHED_RR)) { in pthread_attr_setschedpolicy()
143 attr->schedpolicy = SCHED_RR; in pthread_attr_setschedpolicy()
264 if (policy != SCHED_RR) { in sched_get_priority_min()
274 if (policy != SCHED_RR) { in sched_get_priority_max()
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/smoke/
H A DIt_posix_pthread_018.cpp67 ret = pthread_setschedparam(newTh, SCHED_RR, &param); // in Testcase()
71 ret = pthread_setschedparam(newTh, SCHED_RR, &param); // in Testcase()
75 ret = pthread_setschedparam(newTh, SCHED_RR, &param); // in Testcase()
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/full/
H A Dpthread_test_002.cpp86 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &param); in ThreadFuncTest2()
94 ICUNIT_GOTO_EQUAL(threadPolicy, SCHED_RR, threadPolicy, EXIT); in ThreadFuncTest2()
148 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &param); in ThreadFuncTest3()
156 ICUNIT_GOTO_EQUAL(threadPolicy, SCHED_RR, threadPolicy, EXIT); in ThreadFuncTest3()
/kernel/liteos_a/compat/posix/src/
H A Dpthread_attr.c43 attr->schedpolicy = SCHED_RR; in pthread_attr_init()
142 if ((attr != NULL) && (policy == SCHED_RR)) { in pthread_attr_setschedpolicy()
143 attr->schedpolicy = SCHED_RR; in pthread_attr_setschedpolicy()
H A Dsched.c41 if (policy != SCHED_RR) { in sched_get_priority_min()
51 if (policy != SCHED_RR) { in sched_get_priority_max()
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/
H A DIt_process_plimits_pid_003.cpp69 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in ItProcessPlimitsPid003()
79 ret = sched_setscheduler(getpid(), SCHED_RR, &param); in ItProcessPlimitsPid003()

Completed in 10 milliseconds

1234