feat: rwlock instead of mutex for global scope

* Rwlock -> InnerRwLock
* RwLock makes use of InnerRwLock.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
This commit is contained in:
Anhad Singh
2024-12-31 00:43:24 +11:00
parent 1ffd7187ef
commit cfe89f828a
5 changed files with 139 additions and 17 deletions
+2 -2
View File
@@ -7,13 +7,13 @@ use syscall::{
SetSighandlerData, SIGCONT,
};
use crate::sync::rwlock::Rwlock;
use crate::sync::rwlock::RwLock;
use redox_rt::{proc::FdGuard, signal::sighandler_function};
pub use redox_rt::proc::*;
static CLONE_LOCK: Rwlock = Rwlock::new(crate::pthread::Pshared::Private);
static CLONE_LOCK: RwLock = RwLock::new(crate::pthread::Pshared::Private);
struct Guard;
impl Drop for Guard {