Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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)
 
 ZTEST (threads_scheduling, test_priority_cooperative)
 Validate that the cooperative thread will not be preempted.
 
 ZTEST (threads_scheduling, test_priority_preemptible)
 Validate preemptiveness of preemptive thread.
 
 ZTEST (threads_scheduling_1cpu, test_priority_preemptible_wait_prio)
 Validate scheduling sequence of preemptive threads with start delay.
 
void idle (void *p1, void *p2, void *p3)
 
 ZTEST (threads_scheduling, test_bad_priorities)
 Validate checking priority values.
 

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 
)
extern

◆ 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