Zephyr API Documentation 4.1.99
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)
 
void test_smp_thread_suspend_resume_stress (void)
 
 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 ,
6 ,
1024  )

◆ test_smp_thread_suspend_resume_stress()

void test_smp_thread_suspend_resume_stress ( void )

◆ thread_entry()

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

◆ 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]