Home
last modified time | relevance | path

Searched refs:last_prio (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/kernel/sched/schedule_api/src/
Dtest_sched_priority.c14 static int last_prio; variable
21 last_prio = k_thread_priority_get(k_current_get()); in thread_entry()
52 last_prio = -1; in ZTEST()
53 k_thread_priority_set(k_current_get(), last_prio); in ZTEST()
56 int spawn_prio = last_prio - 1; in ZTEST()
62 zassert_true(last_prio == k_thread_priority_get(k_current_get())); in ZTEST()
65 zassert_true(last_prio == spawn_prio); in ZTEST()
88 last_prio = 2; in ZTEST()
89 k_thread_priority_set(k_current_get(), last_prio); in ZTEST()
91 int spawn_prio = last_prio - 1; in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/threads/thread_apis/src/
Dtest_threads_suspend_resume.c11 static ZTEST_BMEM int last_prio; variable
15 last_prio = k_thread_priority_get(k_current_get()); in thread_entry()
21 last_prio = prio; in threads_suspend_resume()
22 k_thread_priority_set(k_current_get(), last_prio); in threads_suspend_resume()
25 int create_prio = last_prio + 1; in threads_suspend_resume()
34 zassert_false(last_prio == create_prio); in threads_suspend_resume()
38 zassert_true(last_prio == create_prio); in threads_suspend_resume()