Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_threads_set_priority.c File Reference
#include <zephyr/ztest.h>
#include <zephyr/irq_offload.h>
#include "tests_thread_apis.h"

Data Structures

struct  isr_arg
 

Functions

 K_SEM_DEFINE (sem_thread2, 0, 1)
 
 K_SEM_DEFINE (sem_thread1, 0, 1)
 
static void test_isr (const void *arg)
 Test changing a thread's priority from an ISR.
 
void thread2_set_prio_test (void *p1, void *p2, void *p3)
 Test thread behavior when its priority is changed.
 
void test_threads_priority_set (void)
 Test setting and verifying thread priorities.
 
void test_isr_threads_priority_set_ (void)
 Test changing thread priorities from an ISR.
 

Variables

static int thread2_data
 
static struct isr_arg prio_args
 

Function Documentation

◆ K_SEM_DEFINE() [1/2]

K_SEM_DEFINE ( sem_thread1 ,
0 ,
1  )

◆ K_SEM_DEFINE() [2/2]

K_SEM_DEFINE ( sem_thread2 ,
0 ,
1  )

◆ test_isr()

static void test_isr ( const void * arg)
static

Test changing a thread's priority from an ISR.

◆ thread2_set_prio_test()

void thread2_set_prio_test ( void * p1,
void * p2,
void * p3 )

Test thread behavior when its priority is changed.

Variable Documentation

◆ prio_args

struct isr_arg prio_args
static

◆ thread2_data

int thread2_data
static