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,7 +2,7 @@
|
|||
#ifndef _LIST_H_
|
||||
#define _LIST_H_
|
||||
|
||||
#include <kernel/spinlock.h>
|
||||
#include <kernel/lock.h>
|
||||
|
||||
typedef struct _list_item {
|
||||
union {
|
||||
|
|
@ -17,7 +17,7 @@ typedef struct _list_item {
|
|||
typedef struct _list_head {
|
||||
struct _list_item *head;
|
||||
struct _list_item *tail;
|
||||
mtx_t lock;
|
||||
lock_t lock;
|
||||
} list_t;
|
||||
|
||||
void list_create(list_t *list);
|
||||
|
|
|
|||
Loading…
Reference in a new issue