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
+1 -1
View File
@@ -114,7 +114,7 @@ pub unsafe extern "C" fn pthread_rwlock_destroy(rwlock: *mut pthread_rwlock_t) -
0
}
pub(crate) type RlctRwlock = crate::sync::rwlock::Rwlock;
pub(crate) type RlctRwlock = crate::sync::rwlock::InnerRwLock;
#[derive(Clone, Copy, Default)]
pub(crate) struct RlctRwlockAttr {