WIP 2
This commit is contained in:
@ -6,11 +6,8 @@
|
||||
|
||||
typedef struct {
|
||||
atomic_bool lock;
|
||||
uint64_t flags;
|
||||
} SpinLock;
|
||||
|
||||
#define SPINLOCK_HINT() asm volatile("pause")
|
||||
|
||||
void spinlock_init(SpinLock *sl);
|
||||
void spinlock_acquire(SpinLock *sl);
|
||||
void spinlock_release(SpinLock *sl);
|
||||
|
Reference in New Issue
Block a user