Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
#include <zephyr/ztest.h>
#include <zephyr/kernel.h>
#include <zephyr/kernel_structs.h>
#include <kernel_internal.h>
#include <ksched.h>
#include <kthread.h>
Macros | |
#define | STACKSIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE) |
Functions | |
K_THREAD_STACK_DEFINE (kthread_stack,(1024+CONFIG_TEST_EXTRA_STACK_SIZE)) | |
K_SEM_DEFINE (sync_sem, 0, 1) | |
static void | thread_entry (void *p1, void *p2, void *p3) |
ZTEST (threads_lifecycle, test_essential_thread_operation) | |
Test to validate essential flag set/clear. | |
void | k_sys_fatal_error_handler (unsigned int reason, const struct arch_esf *esf) |
Fatal error policy handler. | |
static void | abort_thread_entry (void *p1, void *p2, void *p3) |
ZTEST (threads_lifecycle, test_essential_thread_abort) | |
Abort an essential thread. | |
Variables | |
struct k_thread | kthread_thread |
struct k_thread | kthread_thread1 |
static bool | fatal_error_signaled |
#define STACKSIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE) |
|
static |
K_SEM_DEFINE | ( | sync_sem | , |
0 | , | ||
1 | |||
) |
K_THREAD_STACK_DEFINE | ( | kthread_stack | , |
(1024+CONFIG_TEST_EXTRA_STACK_SIZE) | |||
) |
|
static |
|
static |
struct k_thread kthread_thread |
struct k_thread kthread_thread1 |