Zephyr Project API 3.7.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_threads_spawn.c File Reference
#include <zephyr/ztest.h>
#include "tests_thread_apis.h"

Functions

static void thread_entry_params (void *p1, void *p2, void *p3)
 
static void thread_entry_priority (void *p1, void *p2, void *p3)
 
static void thread_entry_delay (void *p1, void *p2, void *p3)
 
 ZTEST_USER (threads_lifecycle, test_threads_spawn_params)
 Check the parameters passed to thread entry function.
 
 ZTEST (threads_lifecycle, test_threads_spawn_priority)
 Spawn thread with higher priority.
 
 ZTEST_USER (threads_lifecycle, test_threads_spawn_delay)
 Spawn thread with a delay.
 
 ZTEST (threads_lifecycle, test_threads_spawn_forever)
 Spawn thread with forever delay and highest priority.
 
 ZTEST (threads_lifecycle, test_thread_start)
 Validate behavior of multiple calls to k_thread_start()
 
static void user_start_thread (void *p1, void *p2, void *p3)
 
 ZTEST_USER (threads_lifecycle, test_thread_start_user)
 

Variables

static ZTEST_BMEM char tp1 [8]
 
static ZTEST_DMEM int tp2 = 100
 
static ZTEST_BMEM struct k_sema * tp3
 
static ZTEST_BMEM int spawn_prio
 

Function Documentation

◆ thread_entry_delay()

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

◆ thread_entry_params()

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

◆ thread_entry_priority()

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

◆ user_start_thread()

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

◆ ZTEST_USER()

ZTEST_USER ( threads_lifecycle  ,
test_thread_start_user   
)

Variable Documentation

◆ spawn_prio

ZTEST_BMEM int spawn_prio
static

◆ tp1

ZTEST_BMEM char tp1[8]
static

◆ tp2

ZTEST_DMEM int tp2 = 100
static

◆ tp3

ZTEST_BMEM struct k_sema* tp3
static