Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_sched.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef __TEST_SCHED_H__
8#define __TEST_SCHED_H__
9
10#include <zephyr/kernel.h>
11#include <zephyr/ztest.h>
12
13#define MAX_NUM_THREAD 10
14#define STACK_SIZE (640 + CONFIG_TEST_EXTRA_STACK_SIZE)
15
18extern struct k_thread user_thread;
19extern struct k_sem user_sem;
20
26
27void spin_for_ms(int ticks);
28
58
59#endif /* __TEST_SCHED_H__ */
#define K_THREAD_STACK_ARRAY_DECLARE(sym, nmemb, size)
Declare a reference to a thread stack array.
Definition thread_stack.h:419
#define K_THREAD_STACK_DECLARE(sym, size)
Declare a reference to a thread stack.
Definition thread_stack.h:405
Public kernel APIs.
struct k_stack tstack
Thread Structure.
Definition thread.h:259
Definition test_sched.h:21
int executed
Definition test_sched.h:24
int priority
Definition test_sched.h:23
k_tid_t tid
Definition test_sched.h:22
void test_k_thread_resume_init_null(void)
void test_sleep_cooperative(void)
#define MAX_NUM_THREAD
Definition test_sched.h:13
void test_bad_priorities(void)
void test_sched_is_preempt_thread(void)
void test_sleep_wakeup_preemptible(void)
void test_yield_cooperative(void)
void test_k_wakeup_init_null(void)
void test_priority_preemptible_wait_prio(void)
void test_k_thread_priority_get_init_null(void)
void test_time_slicing_preemptible(void)
void test_k_thread_priority_set_upgrade(void)
void test_user_k_is_preempt(void)
void test_priority_scheduling(void)
void test_busy_wait_cooperative(void)
void test_unlock_nested_sched_lock(void)
void test_user_k_wakeup(void)
void test_lock_preemptible(void)
#define STACK_SIZE
Definition test_sched.h:14
void test_k_thread_suspend_init_null(void)
void test_unlock_preemptible(void)
struct k_sem user_sem
void test_slice_scheduling(void)
void test_slice_perthread(void)
void test_k_thread_priority_set_init_null(void)
void test_wakeup_expired_timer_thread(void)
void test_time_slicing_disable_preemptible(void)
void test_priority_preemptible(void)
void test_k_thread_priority_set_overmax(void)
void spin_for_ms(int ticks)
Definition main.c:16
struct k_thread user_thread
Definition main.c:478
void test_priority_cooperative(void)
void test_slice_reset(void)
void test_pending_thread_wakeup(void)
Zephyr Testsuite.