Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
spinlock_error_case.c File Reference
#include <zephyr.h>
#include <ztest.h>
#include <spinlock.h>

Functions

static void set_assert_valid (bool valid)
 
static void action_after_assert_fail (void)
 
void assert_post_action (const char *file, unsigned int line)
 
void test_spinlock_no_recursive (void)
 Test spinlock cannot be recursive. More...
 
void test_spinlock_unlock_error (void)
 Test unlocking incorrect spinlock. More...
 
void test_spinlock_release_error (void)
 Test unlocking incorrect spinlock. More...
 

Variables

static struct k_spinlock lock
 
static struct k_spinlock mylock
 
static k_spinlock_key_t key
 
static ZTEST_DMEM volatile bool valid_assert
 

Function Documentation

◆ action_after_assert_fail()

static void action_after_assert_fail ( void  )
static

◆ assert_post_action()

void assert_post_action ( const char *  file,
unsigned int  line 
)

◆ set_assert_valid()

static void set_assert_valid ( bool  valid)
inlinestatic

Variable Documentation

◆ key

k_spinlock_key_t key
static

◆ lock

struct k_spinlock lock
static

◆ mylock

struct k_spinlock mylock
static

◆ valid_assert

ZTEST_DMEM volatile bool valid_assert
static