Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
timeout_order.c File Reference
#include <kernel.h>
#include <sys/printk.h>
#include <ztest.h>

Macros

#define NUM_TIMEOUTS   3
 
#define STACKSIZE   (512 + CONFIG_TEST_EXTRA_STACKSIZE)
 

Functions

static void thread (void *p1, void *p2, void *p3)
 
static K_THREAD_STACK_ARRAY_DEFINE (stacks, 3,(512+CONFIG_TEST_EXTRA_STACKSIZE))
 
void test_timeout_order (void)
 Test timeout ordering. More...
 

Variables

static struct k_timer timer [3]
 
static struct k_sem sem [3]
 
static int results [3]
 
static int cur
 
static struct k_thread threads [3]
 

Macro Definition Documentation

◆ NUM_TIMEOUTS

#define NUM_TIMEOUTS   3

◆ STACKSIZE

#define STACKSIZE   (512 + CONFIG_TEST_EXTRA_STACKSIZE)

Function Documentation

◆ K_THREAD_STACK_ARRAY_DEFINE()

static K_THREAD_STACK_ARRAY_DEFINE ( stacks  ,
,
(512+CONFIG_TEST_EXTRA_STACKSIZE)   
)
static

◆ thread()

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

Variable Documentation

◆ cur

int cur
static

◆ results

int results[3]
static

◆ sem

struct k_sem sem[3]
static

◆ threads

struct k_thread threads[3]
static

◆ timer

struct k_timer timer[3]
static