Lazuli
Functions
spinlock.c File Reference

Spinlocks implementation. More...

#include <Lazuli/common.h>
#include <Lazuli/config.h>
#include <Lazuli/spinlock.h>
#include <Lazuli/sys/task.h>

Go to the source code of this file.

Functions

void Lz_Spinlock_Unlock (Lz_Spinlock *const spinlock)
 Unset the lock and leave region. More...
 

Detailed Description

Spinlocks implementation.

This file describes the C part of the implementation of spinlocks.

Definition in file spinlock.c.

Function Documentation

◆ Lz_Spinlock_Unlock()

void Lz_Spinlock_Unlock ( Lz_Spinlock *const  spinlock)

Unset the lock and leave region.

Parameters
spinlockA pointer to a Lz_Spinlock used to hold the lock.
Note
The calling task will abort if configuration macro LZ_CONFIG_CHECK_NULL_PARAMETERS_IN_SPINLOCKS is set to 1 and the parameter spinlock is NULL.

Definition at line 20 of file spinlock.c.