blob: daa1a5001c04c77aa6b186dc9949b287a409aa81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
* @file
*
* Spinlock
* ========
*
* Use this locks only for very short time!
*
*
* Ref
* ---
* https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
*/
#ifndef SPINLOCK_H
#define SPINLOCK_H
#include <stdint.h>
void spinlock_spin(uint32_t num);
void spinlock_release(uint32_t num);
#endif
|