/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/ |
H A D | It_posix_pthread_205.c | 50 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 D | It_posix_pthread_089.c | 63 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in PthreadF01() 69 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF01() 103 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); 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 D | It_posix_pthread_088.c | 64 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in PthreadF01() 70 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF01() 102 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); 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 D | It_posix_pthread_047.c | 50 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF01() 56 ret = pthread_setschedparam(g_newTh, SCHED_RR, ¶m); 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 D | It_posix_pthread_206.c | 47 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 D | It_posix_pthread_044.c | 53 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, ¶m); in PthreadF01() 117 ret = pthread_attr_setschedpolicy(&attr, SCHED_RR); // in Testcase()
|
H A D | It_posix_pthread_116.c | 49 UINT32 sched = SCHED_RR; in PthreadF01() 95 UINT32 sched = SCHED_RR; in Testcase()
|
H A D | It_posix_pthread_188.c | 68 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 D | It_posix_pthread_018.c | 72 ret = pthread_setschedparam(newTh, SCHED_RR, NULL); in Testcase() 76 ret = pthread_setschedparam(newTh, SCHED_RR, ¶m); in Testcase() 80 ret = pthread_setschedparam(newTh, SCHED_RR, ¶m); in Testcase() 84 ret = pthread_setschedparam(newTh, SCHED_RR, ¶m); in Testcase() 103 ret = pthread_setschedparam(newTh, SCHED_RR, ¶m); in Testcase() 106 ret = pthread_setschedparam(newTh + 9, SCHED_RR, ¶m); // 9, test for invalid param. in Testcase()
|
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/ |
H A D | shm_test_009.cpp | 48 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, ¶m); in Testcase() 127 param.sched_priority = sched_get_priority_min(SCHED_RR); in Testcase() 145 pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in Testcase() local
|
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/ |
H A D | It_posix_pthread_205.cpp | 43 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 D | It_posix_pthread_089.cpp | 59 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in pthread_f01() 65 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in pthread_f01() 99 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); 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 D | It_posix_pthread_088.cpp | 59 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in pthread_f01() 65 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in pthread_f01() 96 rc = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); 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 D | It_posix_pthread_044.cpp | 46 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, ¶m); // 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 D | It_posix_pthread_206.cpp | 40 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 D | It_posix_pthread_188.cpp | 60 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 D | process_test_043.cpp | 75 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, ¶m); in Testcase() 100 ret = sched_setscheduler(getpid(), SCHED_RR + count, ¶m); in Testcase()
|
H A D | process_test_001.cpp | 80 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, ¶m); in Testcase() 119 ret = sched_setscheduler(1000, SCHED_RR, ¶m); // 1000, input the pid. in Testcase() 131 ICUNIT_ASSERT_EQUAL(ret, SCHED_RR, ret); in Testcase()
|
H A D | process_test_002.cpp | 36 #define CURRENT_PROCESS_POLICY SCHED_RR in Testcase() 55 ret = sched_setscheduler(getpid(), SCHED_RR, ¶m); in Testcase()
|
/kernel/liteos_m/kal/posix/src/ |
H A D | pthread_attr.c | 46 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 D | It_posix_pthread_018.cpp | 67 ret = pthread_setschedparam(newTh, SCHED_RR, ¶m); // in Testcase() 71 ret = pthread_setschedparam(newTh, SCHED_RR, ¶m); // in Testcase() 75 ret = pthread_setschedparam(newTh, SCHED_RR, ¶m); // in Testcase()
|
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/full/ |
H A D | pthread_test_002.cpp | 86 ret = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in ThreadFuncTest2() 94 ICUNIT_GOTO_EQUAL(threadPolicy, SCHED_RR, threadPolicy, EXIT); in ThreadFuncTest2() 148 ret = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); in ThreadFuncTest3() 156 ICUNIT_GOTO_EQUAL(threadPolicy, SCHED_RR, threadPolicy, EXIT); in ThreadFuncTest3()
|
/kernel/liteos_a/compat/posix/src/ |
H A D | pthread_attr.c | 43 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 D | sched.c | 41 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 D | It_process_plimits_pid_003.cpp | 69 ret = sched_setscheduler(getpid(), SCHED_RR, ¶m); in ItProcessPlimitsPid003() 79 ret = sched_setscheduler(getpid(), SCHED_RR, ¶m); in ItProcessPlimitsPid003()
|