Sound Open Firmware
Loading...
Searching...
No Matches
spinlock.h File Reference

RTOS spinlock primitives and initialization. More...

Include dependency graph for spinlock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void k_spinlock_init (struct k_spinlock *lock)
 Initialize a spinlock structure to the unlocked state.
 

Detailed Description

RTOS spinlock primitives and initialization.

Function Documentation

◆ k_spinlock_init()

static void k_spinlock_init ( struct k_spinlock *  lock)
inlinestatic

Initialize a spinlock structure to the unlocked state.

Parameters
lockPointer to the Zephyr k_spinlock structure.

Clears the locked atomic flag on SMP systems. Not provided by upstream Zephyr core, but required by SOF multi-core synchronization primitives.