Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
test_sched_priority.c File Reference
#include "test_sched.h"
#include <ksched.h>

Macros

#define THREAD_NUM   4
 

Functions

static void thread_entry (void *p1, void *p2, void *p3)
 
static void thread_entry_prio (void *p1, void *p2, void *p3)
 
void test_priority_cooperative (void)
 Validate that the cooperative thread will not be preempted. More...
 
void test_priority_preemptible (void)
 Validate preemptiveness of preemptive thread. More...
 
void test_priority_preemptible_wait_prio (void)
 Validate scheduling sequence of preemptive threads with start delay. More...
 
void idle (void *p1, void *p2, void *p3)
 
void test_bad_priorities (void)
 

Variables

static struct k_thread tdata_prio [4]
 
static struct k_thread tdata
 
static int last_prio
 
static uint8_t tid_num [4]
 
static struct k_sem sync_sema
 

Macro Definition Documentation

◆ THREAD_NUM

#define THREAD_NUM   4

Function Documentation

◆ idle()

void idle ( void p1,
void p2,
void p3 
)

◆ thread_entry()

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

◆ thread_entry_prio()

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

Variable Documentation

◆ last_prio

int last_prio
static

◆ sync_sema

struct k_sem sync_sema
static

◆ tdata

struct k_thread tdata
static

◆ tdata_prio

struct k_thread tdata_prio[4]
static

◆ tid_num

uint8_t tid_num[4]
static