9 lines
No EOL
151 B
C
9 lines
No EOL
151 B
C
#include <stdatomic.h>
|
|
|
|
#ifndef SPINLOCK_H
|
|
#define SPINLOCK_H
|
|
|
|
void acquire_spinlock(atomic_flag *lock);
|
|
void free_spinlock(atomic_flag *lock);
|
|
|
|
#endif |