Files
2026-04-01 09:15:59 +02:00

22 lines
358 B
C

/*
* @author xamidev <xamidev@riseup.net>
* @brief Spinlock implementation
* @license GPL-3.0-only
*/
#ifndef SPINLOCK_H
#define SPINLOCK_H
#include <stdbool.h>
#include <stdint.h>
struct spinlock
{
bool locked;
uint64_t rflags;
};
void spinlock_acquire(struct spinlock* lock);
void spinlock_release(struct spinlock* lock);
#endif