Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
test_threads_cancel_abort.c File Reference
#include <ztest.h>
#include "tests_thread_apis.h"

Macros

#define BLOCK_SIZE   64
 

Functions

 K_SEM_DEFINE (sync_sema, 0, 1)
 
static void thread_entry (void *p1, void *p2, void *p3)
 
static void thread_entry_abort (void *p1, void *p2, void *p3)
 
void test_threads_abort_self (void)
 Validate k_thread_abort() when called by current thread. More...
 
void test_threads_abort_others (void)
 Validate k_thread_abort() when called by other thread. More...
 
void test_threads_abort_repeat (void)
 Test abort on a terminated thread. More...
 
static void delayed_thread_entry (void *p1, void *p2, void *p3)
 
void test_delayed_thread_abort (void)
 Test abort on delayed thread before it has started execution. More...
 
static void offload_func (const void *param)
 
static void entry_abort_isr (void *p1, void *p2, void *p3)
 
void test_abort_from_isr (void)
 Show that threads can be aborted from interrupt context by itself. More...
 
static void entry_aborted_thread (void *p1, void *p2, void *p3)
 
void test_abort_from_isr_not_self (void)
 Show that threads can be aborted from interrupt context. More...
 

Variables

static ZTEST_BMEM int execute_flag
 
bool abort_called
 
voidblock
 
static volatile bool isr_finished
 
struct k_sem offload_sem
 
static struct k_sem sem_abort
 

Macro Definition Documentation

◆ BLOCK_SIZE

#define BLOCK_SIZE   64

Function Documentation

◆ delayed_thread_entry()

static void delayed_thread_entry ( void p1,
void p2,
void p3 
)
static

◆ entry_abort_isr()

static void entry_abort_isr ( void p1,
void p2,
void p3 
)
static

◆ entry_aborted_thread()

static void entry_aborted_thread ( void p1,
void p2,
void p3 
)
static

◆ K_SEM_DEFINE()

K_SEM_DEFINE ( sync_sema  ,
,
 
)

◆ offload_func()

static void offload_func ( const void param)
static

◆ thread_entry()

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

◆ thread_entry_abort()

static void thread_entry_abort ( void p1,
void p2,
void p3 
)
static

TESTPOINT: abort current thread

Variable Documentation

◆ abort_called

bool abort_called

◆ block

void* block

◆ execute_flag

ZTEST_BMEM int execute_flag
static

◆ isr_finished

volatile bool isr_finished
static

◆ offload_sem

struct k_sem offload_sem
extern

◆ sem_abort

struct k_sem sem_abort
static