Home
last modified time | relevance | path

Searched refs:sched_priority (Results 1 – 25 of 159) sorted by relevance

1234567

/kernel/liteos_a/testsuites/unittest/process/basic/pthread/full/
Dpthread_test_002.cpp69 param.sched_priority = g_currThreadPri + 1; in ThreadFuncTest2()
74 param.sched_priority = 0; in ThreadFuncTest2()
79 ICUNIT_GOTO_EQUAL(param.sched_priority, (g_currThreadPri + 1), param.sched_priority, EXIT); in ThreadFuncTest2()
85 param.sched_priority = g_currThreadPri; in ThreadFuncTest2()
90 param.sched_priority = 0; in ThreadFuncTest2()
95 ICUNIT_GOTO_EQUAL(param.sched_priority, g_currThreadPri, param.sched_priority, EXIT); in ThreadFuncTest2()
131 param.sched_priority = g_currThreadPri + 1; in ThreadFuncTest3()
136 param.sched_priority = 0; in ThreadFuncTest3()
141 ICUNIT_GOTO_EQUAL(param.sched_priority, (g_currThreadPri + 1), param.sched_priority, EXIT); in ThreadFuncTest3()
147 param.sched_priority = g_currThreadPri; in ThreadFuncTest3()
[all …]
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/
DIt_posix_pthread_206.cpp42 schedparam.sched_priority = sched_get_priority_min(g_pthreadSchedPolicy); in pthread_f01()
51 …ICUNIT_TRACK_EQUAL(schedparam1.sched_priority, schedparam.sched_priority, schedparam1.sched_priori… in pthread_f01()
54 schedparam.sched_priority++; in pthread_f01()
63 …ICUNIT_TRACK_EQUAL(schedparam1.sched_priority, schedparam.sched_priority, schedparam1.sched_priori… in pthread_f01()
DIt_posix_pthread_205.cpp51 ICUNIT_TRACK_EQUAL(schedparam.sched_priority, priority, schedparam.sched_priority); in pthread_f01()
61 schedparam.sched_priority = sched_get_priority_max(SCHED_RR) - 1; in pthread_f02()
62 …ICUNIT_TRACK_EQUAL(schedparam.sched_priority, OS_TASK_PRIORITY_LOWEST - 1, schedparam.sched_priori… in pthread_f02()
64 schedparam.sched_priority = sched_get_priority_max(SCHED_RR); // priority = 31 in pthread_f02()
65 … ICUNIT_TRACK_EQUAL(schedparam.sched_priority, OS_TASK_PRIORITY_LOWEST, schedparam.sched_priority); in pthread_f02()
DIt_posix_pthread_116.cpp51 ICUNIT_GOTO_EQUAL(schParam.sched_priority, PRI, schParam.sched_priority, EXIT); in pthread_f01()
53 priority = schParam.sched_priority - 4; in pthread_f01()
54 schParam.sched_priority = priority; in pthread_f01()
60 ICUNIT_GOTO_EQUAL(schParam.sched_priority, priority, schParam.sched_priority, EXIT); in pthread_f01()
94 schedparam.sched_priority = PRI; in Testcase()
102 schedparam.sched_priority = PRI - 1; in Testcase()
DIt_posix_pthread_088.cpp57 param.sched_priority = HIGH_PRIORITY; in pthread_f01()
66 ICUNIT_GOTO_EQUAL(param.sched_priority, HIGH_PRIORITY, param.sched_priority, EXIT); in pthread_f01()
94 param.sched_priority = LOW_PRIORITY; in pthread_f02()
103 ICUNIT_GOTO_EQUAL(param.sched_priority, LOW_PRIORITY, param.sched_priority, EXIT); in pthread_f02()
136 param.sched_priority = HIGH_PRIORITY; in Testcase()
152 param.sched_priority = LOW_PRIORITY; in Testcase()
DIt_posix_pthread_089.cpp57 param.sched_priority = HIGH_PRIORITY; in pthread_f01()
66 ICUNIT_GOTO_EQUAL(param.sched_priority, HIGH_PRIORITY, param.sched_priority, EXIT); in pthread_f01()
97 param.sched_priority = LOW_PRIORITY; in pthread_f02()
106 ICUNIT_GOTO_EQUAL(param.sched_priority, LOW_PRIORITY, param.sched_priority, EXIT); in pthread_f02()
146 param.sched_priority = HIGH_PRIORITY; in Testcase()
160 param.sched_priority = LOW_PRIORITY; in Testcase()
DIt_posix_pthread_209.cpp47 sparam.sched_priority = priority; in pthread_f01()
57 …ICUNIT_TRACK_EQUAL(sparam.sched_priority, USER_PROCESS_PRIORITY_LOWEST - 1, sparam.sched_priority); in pthread_f01()
59 ICUNIT_TRACK_EQUAL(sparam.sched_priority, USER_PROCESS_PRIORITY_LOWEST, sparam.sched_priority); in pthread_f01()
DIt_posix_pthread_044.cpp47 ICUNIT_GOTO_EQUAL(param.sched_priority, 3, param.sched_priority, EXIT); in pthread_f02()
66 ICUNIT_GOTO_EQUAL(param.sched_priority, 4, param.sched_priority, EXIT); in pthread_f01()
78 param.sched_priority = 3; in pthread_f01()
115 param.sched_priority = 4; in Testcase()
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/
DIt_posix_pthread_206.c49 schedparam.sched_priority = sched_get_priority_min(g_pthreadSchedPolicy); in PthreadF01()
58 …ICUNIT_TRACK_EQUAL(schedparam1.sched_priority, schedparam.sched_priority, schedparam1.sched_priori… in PthreadF01()
61 schedparam.sched_priority++; in PthreadF01()
70 …ICUNIT_TRACK_EQUAL(schedparam1.sched_priority, schedparam.sched_priority, schedparam1.sched_priori… in PthreadF01()
DIt_posix_pthread_205.c58 ICUNIT_TRACK_EQUAL(schedparam.sched_priority, priority, schedparam.sched_priority); in PthreadF01()
68 schedparam.sched_priority = sched_get_priority_max(SCHED_RR) - 1; in PthreadF02()
69 …ICUNIT_TRACK_EQUAL(schedparam.sched_priority, OS_TASK_PRIORITY_LOWEST - 1, schedparam.sched_priori… in PthreadF02()
71 schedparam.sched_priority = sched_get_priority_max(SCHED_RR); in PthreadF02()
72 … ICUNIT_TRACK_EQUAL(schedparam.sched_priority, OS_TASK_PRIORITY_LOWEST, schedparam.sched_priority); in PthreadF02()
DIt_posix_pthread_047.c51 …ICUNIT_GOTO_EQUAL(param.sched_priority, 4, param.sched_priority, EXIT); // 4, here assert the resu… in PthreadF01()
55 param.sched_priority = 26; // 26, set priority. in PthreadF01()
65 …ICUNIT_GOTO_EQUAL(param.sched_priority, 26, param.sched_priority, EXIT); // 26, here assert the re… in PthreadF01()
84 param.sched_priority = 4; // 4, set priority. in Testcase()
97 …ICUNIT_ASSERT_EQUAL(param.sched_priority, 26, param.sched_priority); // 26, here assert the result. in Testcase()
DIt_posix_pthread_116.c58 ICUNIT_GOTO_EQUAL(schParam.sched_priority, PRI, schParam.sched_priority, EXIT); in PthreadF01()
60 priority = schParam.sched_priority - 4; // 4, Set reasonable priority in PthreadF01()
61 schParam.sched_priority = priority; in PthreadF01()
67 ICUNIT_GOTO_EQUAL(schParam.sched_priority, priority, schParam.sched_priority, EXIT); in PthreadF01()
99 attr.schedparam.sched_priority = PRI; in Testcase()
107 attr.schedparam.sched_priority = PRI - 1; in Testcase()
DIt_posix_pthread_089.c61 param.sched_priority = HIGH_PRIORITY; in PthreadF01()
70 ICUNIT_GOTO_EQUAL(param.sched_priority, HIGH_PRIORITY, param.sched_priority, EXIT); in PthreadF01()
101 param.sched_priority = LOW_PRIORITY; in PthreadF02()
110 ICUNIT_GOTO_EQUAL(param.sched_priority, LOW_PRIORITY, param.sched_priority, EXIT); in PthreadF02()
148 param.sched_priority = HIGH_PRIORITY; in Testcase()
162 param.sched_priority = LOW_PRIORITY; in Testcase()
DIt_posix_pthread_088.c62 param.sched_priority = HIGH_PRIORITY; in PthreadF01()
71 ICUNIT_GOTO_EQUAL(param.sched_priority, HIGH_PRIORITY, param.sched_priority, EXIT); in PthreadF01()
100 param.sched_priority = LOW_PRIORITY; in PthreadF02()
109 ICUNIT_GOTO_EQUAL(param.sched_priority, LOW_PRIORITY, param.sched_priority, EXIT); in PthreadF02()
143 param.sched_priority = HIGH_PRIORITY; in Testcase()
159 param.sched_priority = LOW_PRIORITY; in Testcase()
DIt_posix_pthread_209.c54 sparam.sched_priority = priority; in PthreadF01()
64 ICUNIT_TRACK_EQUAL(sparam.sched_priority, OS_TASK_PRIORITY_LOWEST - 1, sparam.sched_priority); in PthreadF01()
66 ICUNIT_TRACK_EQUAL(sparam.sched_priority, OS_TASK_PRIORITY_LOWEST, sparam.sched_priority); in PthreadF01()
DIt_posix_pthread_187.c53 ICUNIT_TRACK_EQUAL(schedparam.sched_priority, paramTest->priority, schedparam.sched_priority); in PthreadF01()
84 schedparam.sched_priority = paramTest.priority; in Testcase()
93 ICUNIT_ASSERT_EQUAL(pthreadData->attr.schedparam.sched_priority, paramTest.priority, in Testcase()
94 pthreadData->attr.schedparam.sched_priority); in Testcase()
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/smoke/
DIt_posix_pthread_018.c75 param.sched_priority = 0; in Testcase()
79 param.sched_priority = 31; // 31, init in Testcase()
83 param.sched_priority = 32; // 32, init in Testcase()
89 …ICUNIT_ASSERT_EQUAL(param2.sched_priority, 2, param2.sched_priority); // 2, here assert the result. in Testcase()
96 …ICUNIT_ASSERT_EQUAL(param2.sched_priority, 31, param2.sched_priority); // 31, here assert the resu… in Testcase()
102 param.sched_priority = 4; // 4, init in Testcase()
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
Dprocess_test_002.cpp49 ICUNIT_GOTO_EQUAL(param.sched_priority, currProcessPri, param.sched_priority, ERROR_OUT); in Testcase()
54 param.sched_priority = PROCESS_TEST_PRI1; in Testcase()
60 ICUNIT_GOTO_EQUAL(param.sched_priority, PROCESS_TEST_PRI1, param.sched_priority, ERROR_OUT); in Testcase()
62 param.sched_priority = PROCESS_TEST_PRI2; in Testcase()
75 param.sched_priority = currProcessPri; in Testcase()
Dprocess_test_001.cpp63 param.sched_priority = PROCESS_PRIORITY_MIN + 1; in Testcase()
69 param.sched_priority = 15; // 15, set pthread priority. in Testcase()
106 param.sched_priority = PROCESS_PRIORITY_MAX - 1; in Testcase()
112 param.sched_priority = PROCESS_PRIORITY_MAX - 1; in Testcase()
118 param.sched_priority = 11; // 11, set pthread priority. in Testcase()
124 param.sched_priority = PROCESS_PRIORITY_MAX - 1; in Testcase()
125 ret = setpriority(PRIO_PROCESS, getpid(), param.sched_priority); in Testcase()
143 param.sched_priority = PROCESS_PRIORITY_MAX - 1; in Testcase()
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/
DIt_process_plimits_pid_003.cpp68 param.sched_priority = pidnum - 1; in ItProcessPlimitsPid003()
72 ret = setpriority(PRIO_PROCESS, getpid(), param.sched_priority); in ItProcessPlimitsPid003()
78 param.sched_priority = currProcessPri + 1; in ItProcessPlimitsPid003()
82 param.sched_priority++; in ItProcessPlimitsPid003()
83 ret = setpriority(PRIO_PROCESS, getpid(), param.sched_priority); in ItProcessPlimitsPid003()
86 param.sched_priority++; in ItProcessPlimitsPid003()
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/
Dpthread_test_003.cpp52 ICUNIT_GOTO_EQUAL(g_currThreadPri, param.sched_priority, param.sched_priority, EXIT); in ThreadFuncTest2()
72 ICUNIT_GOTO_EQUAL(g_currThreadPri, param.sched_priority, param.sched_priority, EXIT); in ThreadFuncTest3()
93 g_currThreadPri = param.sched_priority; in Testcase()
105 param.sched_priority = g_currThreadPri; in Testcase()
117 param.sched_priority = g_currThreadPri; in Testcase()
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/smoke/
Dpthread_mutex_test_003.cpp55 currThreadPri = param.sched_priority; in ThreadFuncTest3()
91 currThreadPri = param.sched_priority; in Testcase()
100 param.sched_priority = currThreadPri - 2 * count; in Testcase()
107 param.sched_priority = currThreadPri - 1; in Testcase()
114 param.sched_priority = currThreadPri - 6; in Testcase()
120 param.sched_priority = 0; in Testcase()
126 param.sched_priority = currThreadPri - 1; in Testcase()
132 param.sched_priority = currThreadPri; in Testcase()
Dpthread_mutex_test_002.cpp77 param.sched_priority = 20; // 20, Set Priorities in Testcase()
84 currThreadPri = param.sched_priority; in Testcase()
94 param.sched_priority = currThreadPri - count - 1; in Testcase()
95 if (param.sched_priority < 0) { in Testcase()
96 param.sched_priority = 0; in Testcase()
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/smoke/
DIt_posix_pthread_018.cpp66 param.sched_priority = 0; in Testcase()
70 param.sched_priority = 31; in Testcase()
74 param.sched_priority = 32; in Testcase()
80 ICUNIT_ASSERT_EQUAL(param2.sched_priority, 31, param2.sched_priority); in Testcase()
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/
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()
114 threadPrio = param.sched_priority; in Testcase()
127 param.sched_priority = sched_get_priority_min(SCHED_RR); in Testcase()
144 param.sched_priority = threadPrio; in Testcase()

1234567