Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
main.c File Reference
#include <zephyr.h>
#include <ztest.h>
#include <random/rand32.h>

Macros

#define NUM_THREADS   8
 
#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACKSIZE)
 

Functions

 K_THREAD_STACK_ARRAY_DEFINE (worker_stacks, 8,(512+CONFIG_TEST_EXTRA_STACKSIZE))
 
void worker (void *p1, void *p2, void *p3)
 
void test_deadline (void)
 
void yield_worker (void *p1, void *p2, void *p3)
 
void test_yield (void)
 
void unqueue_worker (void *p1, void *p2, void *p3)
 
void test_unqueued (void)
 Validate the behavior of dealine_set when the thread is not queued. More...
 
void test_main (void)
 

Variables

struct k_thread worker_threads [8]
 
k_tid_t worker_tids [8]
 
int thread_deadlines [8]
 
int n_exec
 
int exec_order [8]
 

Macro Definition Documentation

◆ NUM_THREADS

#define NUM_THREADS   8

◆ STACK_SIZE

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACKSIZE)

Function Documentation

◆ K_THREAD_STACK_ARRAY_DEFINE()

K_THREAD_STACK_ARRAY_DEFINE ( worker_stacks  ,
,
(512+CONFIG_TEST_EXTRA_STACKSIZE)   
)

◆ test_deadline()

void test_deadline ( void  )

◆ test_main()

void test_main ( void  )

test case main entry

◆ test_yield()

void test_yield ( void  )

◆ unqueue_worker()

void unqueue_worker ( void p1,
void p2,
void p3 
)

◆ worker()

void worker ( void p1,
void p2,
void p3 
)

◆ yield_worker()

void yield_worker ( void p1,
void p2,
void p3 
)

Variable Documentation

◆ exec_order

int exec_order[8]

◆ n_exec

int n_exec

◆ thread_deadlines

int thread_deadlines[8]

◆ worker_threads

struct k_thread worker_threads[8]

◆ worker_tids

k_tid_t worker_tids[8]