|
Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
|
Go to the source code of this file.
Data Structures | |
| struct | thread_data |
Macros | |
| #define | MAX_NUM_THREAD 10 |
| #define | STACK_SIZE (640 + CONFIG_TEST_EXTRA_STACK_SIZE) |
Functions | |
| K_THREAD_STACK_DECLARE (tstack,(640+CONFIG_TEST_EXTRA_STACK_SIZE)) | |
| K_THREAD_STACK_ARRAY_DECLARE (tstacks, 10,(640+CONFIG_TEST_EXTRA_STACK_SIZE)) | |
| void | spin_for_ms (int ticks) |
| void | test_priority_cooperative (void) |
| Validate that the cooperative thread will not be preempted. | |
| void | test_priority_preemptible (void) |
| Validate preemptiveness of preemptive thread. | |
| void | test_priority_preemptible_wait_prio (void) |
| Validate scheduling sequence of preemptive threads with start delay. | |
| void | test_bad_priorities (void) |
| Validate checking priority values. | |
| void | test_yield_cooperative (void) |
| Validate the behavior of cooperative thread when it yields. | |
| void | test_sleep_cooperative (void) |
| Validate the behavior of cooperative thread when it sleeps. | |
| void | test_busy_wait_cooperative (void) |
| void | test_sleep_wakeup_preemptible (void) |
| Validate k_wakeup() | |
| void | test_pending_thread_wakeup (void) |
| Verify k_wakeup() behavior on pending thread. | |
| void | test_time_slicing_preemptible (void) |
| Validate preemptive thread behavior with time slice. | |
| void | test_time_slicing_disable_preemptible (void) |
| Check the behavior of preemptive thread with k_busy_wait() | |
| void | test_lock_preemptible (void) |
| Lock the scheduler when preemptive threads are running. | |
| void | test_unlock_preemptible (void) |
| Validate k_sched_lock() and k_sched_unlock() | |
| void | test_unlock_nested_sched_lock (void) |
| Validate nested k_sched_lock() and k_sched_unlock() | |
| void | test_sched_is_preempt_thread (void) |
| Validate the correctness of k_is_preempt_thread() | |
| void | test_slice_reset (void) |
| void | test_slice_scheduling (void) |
| void | test_priority_scheduling (void) |
| Check the behavior of preemptive threads with different priorities. | |
| void | test_wakeup_expired_timer_thread (void) |
| validate k_wakeup() in some corner scenario | |
| void | test_user_k_wakeup (void) |
| void | test_user_k_is_preempt (void) |
| void | test_k_thread_suspend_init_null (void) |
| Test k_thread_suspend() API. | |
| void | test_k_thread_resume_init_null (void) |
| Test k_thread_resume() API. | |
| void | test_k_thread_priority_get_init_null (void) |
| Test k_thread_priority_get() API. | |
| void | test_k_thread_priority_set_init_null (void) |
| Test k_thread_priority_set() API. | |
| void | test_k_thread_priority_set_overmax (void) |
| Test k_thread_priority_set() API. | |
| void | test_k_thread_priority_set_upgrade (void) |
| Test k_thread_priority_set() API. | |
| void | test_k_wakeup_init_null (void) |
| Test k_wakeup() API. | |
| void | test_slice_perthread (void) |
Variables | |
| struct k_thread | user_thread |
| struct k_sem | user_sem |
| #define MAX_NUM_THREAD 10 |
| #define STACK_SIZE (640 + CONFIG_TEST_EXTRA_STACK_SIZE) |
| K_THREAD_STACK_ARRAY_DECLARE | ( | tstacks | , |
| 10 | , | ||
| (640+CONFIG_TEST_EXTRA_STACK_SIZE) | ) |
| K_THREAD_STACK_DECLARE | ( | tstack | , |
| (640+CONFIG_TEST_EXTRA_STACK_SIZE) | ) |
| void spin_for_ms | ( | int | ticks | ) |
| void test_busy_wait_cooperative | ( | void | ) |
| void test_slice_perthread | ( | void | ) |
| void test_slice_reset | ( | void | ) |
| void test_slice_scheduling | ( | void | ) |
| void test_user_k_is_preempt | ( | void | ) |
| void test_user_k_wakeup | ( | void | ) |
|
extern |
|
extern |