Use RW spin locks
All checks were successful
Build documentation / build-and-deploy (push) Successful in 39s

This commit is contained in:
2026-01-09 19:53:08 +01:00
parent a5283283f6
commit 6a474c21a0
9 changed files with 198 additions and 39 deletions

View File

@@ -7,6 +7,7 @@
#include <libk/rbtree.h>
#include <libk/std.h>
#include <proc/proc.h>
#include <sync/rw_spin_lock.h>
#define CPUS_MAX 32
@@ -29,7 +30,7 @@ struct cpu {
atomic_int nesting;
} irq_ctx;
spin_lock_t lock;
rw_spin_lock_t lock;
struct rb_node_link* proc_run_q;
struct proc* proc_current;