lock: merge spinlock and mtx locks into one
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
3e5abada9b
commit
2076f1dae1
32 changed files with 158 additions and 169 deletions
|
|
@ -2,11 +2,11 @@
|
|||
#ifndef _SEM_H_
|
||||
#define _SEM_H_
|
||||
|
||||
#include <kernel/spinlock.h>
|
||||
#include <kernel/lock.h>
|
||||
|
||||
typedef struct _sem_t {
|
||||
u64 sem;
|
||||
spinlock_t lock;
|
||||
lock_t lock;
|
||||
} sem_t;
|
||||
|
||||
bool sem_trywait(sem_t *sem);
|
||||
|
|
|
|||
Loading…
Reference in a new issue