vbos/amd64/include/kernel/spinlock.h
Michael Shaw 9c50a1df92
kernel: add thread_wait, thread_block and mtx
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-08-12 14:59:34 -04:00

17 lines
396 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _SPINLOCK_H_
#define _SPINLOCK_H_
#include <kernel/types.h>
#include <kernel/common.h>
#define CLEANUP_SLOCK CLEANUP(cleanup_spinlock)
typedef u32 spinlock_t;
typedef spinlock_t mtx_t;
void spinlock_acquire(spinlock_t *lock);
void spinlock_release(spinlock_t *lock);
void cleanup_spinlock(spinlock_t **lock_ptr);
#endif /* _SPINLOCK_H_ */