NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
Loading...
Searching...
No Matches
spinlock.h File Reference

Single simple spin-lock based on atomic memory operations. More...

Go to the source code of this file.

Functions

void spin_lock (void)
 
void spin_unlock (void)
 

Detailed Description

Single simple spin-lock based on atomic memory operations.

Function Documentation

◆ spin_lock()

void spin_lock ( void )

Spinlock: set lock.

Warning
This function is blocking until the lock is acquired and set.

◆ spin_unlock()

void spin_unlock ( void )

Spinlock: remove lock.