Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_essential_thread.c File Reference
#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
 

Macro Definition Documentation

◆ STACKSIZE

#define STACKSIZE   (1024 + CONFIG_TEST_EXTRA_STACK_SIZE)

Function Documentation

◆ abort_thread_entry()

static void abort_thread_entry ( void *  p1,
void *  p2,
void *  p3 
)
static

◆ K_SEM_DEFINE()

K_SEM_DEFINE ( sync_sem  ,
,
 
)

◆ K_THREAD_STACK_DEFINE()

K_THREAD_STACK_DEFINE ( kthread_stack  ,
(1024+CONFIG_TEST_EXTRA_STACK_SIZE)   
)

◆ thread_entry()

static void thread_entry ( void *  p1,
void *  p2,
void *  p3 
)
static

Variable Documentation

◆ fatal_error_signaled

bool fatal_error_signaled
static

◆ kthread_thread

struct k_thread kthread_thread

◆ kthread_thread1

struct k_thread kthread_thread1