mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 21:58:20 +00:00
pmm and slab: switch from spinlocks to mutexes
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <spinlock.h>
|
||||
#include <mutex.h>
|
||||
|
||||
typedef struct slab_t {
|
||||
struct slab_t *next;
|
||||
@@ -14,7 +14,7 @@ typedef struct slab_t {
|
||||
} slab_t;
|
||||
|
||||
typedef struct scache_t {
|
||||
spinlock_t lock;
|
||||
mutex_t mutex;
|
||||
void (*ctor)(struct scache_t *cache, void *obj);
|
||||
void (*dtor)(struct scache_t *cache, void *obj);
|
||||
slab_t *full;
|
||||
|
||||
Reference in New Issue
Block a user