|
| K_SEM_DEFINE (pend_sema, 0, 1) |
|
| K_SEM_DEFINE (timer_sema, 0, 1) |
|
static void | thread_entry (void *p1, void *p2, void *p3) |
|
static void | setup_threads (void) |
|
static void | spawn_threads (int sleep_sec) |
|
static void | teardown_threads (void) |
|
static void | timer_handler (struct k_timer *timer) |
|
static void | thread_handler (void *p1, void *p2, void *p3) |
|
| ZTEST (threads_scheduling, test_yield_cooperative) |
| Validate the behavior of cooperative thread when it yields.
|
|
| ZTEST (threads_scheduling, test_sleep_cooperative) |
| Validate the behavior of cooperative thread when it sleeps.
|
|
| ZTEST (threads_scheduling, test_busy_wait_cooperative) |
|
| ZTEST (threads_scheduling, test_sleep_wakeup_preemptible) |
| Validate k_wakeup()
|
|
static void | coop_thread (void *p1, void *p2, void *p3) |
|
| ZTEST (threads_scheduling, test_pending_thread_wakeup) |
| Verify k_wakeup() behavior on pending thread.
|
|
| ZTEST (threads_scheduling, test_time_slicing_preemptible) |
| Validate preemptive thread behavior with time slice.
|
|
| ZTEST (threads_scheduling, test_time_slicing_disable_preemptible) |
| Check the behavior of preemptive thread with k_busy_wait()
|
|
| ZTEST (threads_scheduling, test_lock_preemptible) |
| Lock the scheduler when preemptive threads are running.
|
|
| ZTEST (threads_scheduling, test_unlock_preemptible) |
| Validate k_sched_lock() and k_sched_unlock()
|
|
| ZTEST (threads_scheduling, test_unlock_nested_sched_lock) |
| Validate nested k_sched_lock() and k_sched_unlock()
|
|
| ZTEST (threads_scheduling, test_wakeup_expired_timer_thread) |
| validate k_wakeup() in some corner scenario
|
|