Files
mop3/kernel/sync/spin_lock.h
kamkow1 c8fb575bdd
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 2m7s
Build documentation / build-and-deploy (push) Successful in 39s
Change formatting rules
2026-04-24 01:54:48 +02:00

16 lines
330 B
C

#ifndef _KERNEL_SYNC_SPIN_LOCK_H
#define _KERNEL_SYNC_SPIN_LOCK_H
#include <libk/std.h>
#include <sys/spin_lock.h>
#define SPIN_LOCK_INIT ATOMIC_FLAG_INIT
typedef atomic_flag spin_lock_t;
void spin_lock(spin_lock_t* sl, uint64_t* flags);
void spin_unlock(spin_lock_t* sl, uint64_t flags);
#endif // _KERNEL_SYNC_SPIN_LOCK_H