Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
main.c File Reference
#include <zephyr/tc_util.h>
#include <zephyr/ztest.h>
#include <zephyr/kernel.h>

Macros

#define STACK_SIZE   1024
 
#define NUM_THREADS   6
 

Functions

 K_THREAD_STACK_ARRAY_DEFINE (thread_stack, 6, 1024)
 
static void thread_entry (void *p1, void *p2, void *p3)
 
 ZTEST (smp_suspend_resume, test_smp_thread_suspend_resume_stress)
 
 ZTEST_SUITE (smp_suspend_resume, NULL, NULL, NULL, NULL, NULL)
 

Variables

struct k_thread thread [6]
 
volatile uint64_t thread_counter [6]
 

Macro Definition Documentation

◆ NUM_THREADS

#define NUM_THREADS   6

◆ STACK_SIZE

#define STACK_SIZE   1024

Function Documentation

◆ K_THREAD_STACK_ARRAY_DEFINE()

K_THREAD_STACK_ARRAY_DEFINE ( thread_stack  ,
,
1024   
)

◆ thread_entry()

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

◆ ZTEST()

ZTEST ( smp_suspend_resume  ,
test_smp_thread_suspend_resume_stress   
)

◆ ZTEST_SUITE()

ZTEST_SUITE ( smp_suspend_resume  ,
NULL  ,
NULL  ,
NULL  ,
NULL  ,
NULL   
)

Variable Documentation

◆ thread

struct k_thread thread[6]

◆ thread_counter

volatile uint64_t thread_counter[6]