Skip to content

Commit 7a1a3f0

Browse files
committed
std: replace pthread RwLock with custom implementation inspired by usync
1 parent ce1073b commit 7a1a3f0

File tree

5 files changed

+507
-198
lines changed

5 files changed

+507
-198
lines changed

library/std/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,16 @@
303303
#![feature(prelude_2024)]
304304
#![feature(provide_any)]
305305
#![feature(ptr_as_uninit)]
306+
#![feature(ptr_from_ref)]
307+
#![feature(ptr_mask)]
306308
#![feature(raw_os_nonzero)]
307309
#![feature(round_ties_even)]
308310
#![feature(slice_internals)]
309311
#![feature(slice_ptr_get)]
310312
#![feature(std_internals)]
311313
#![feature(str_internals)]
312314
#![feature(strict_provenance)]
315+
#![feature(strict_provenance_atomic_ptr)]
313316
// tidy-alphabetical-end
314317
//
315318
// Library features (alloc):

library/std/src/sys/unix/locks/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ cfg_if::cfg_if! {
2222
pub(crate) use futex_condvar::Condvar;
2323
} else {
2424
mod pthread_mutex;
25-
mod pthread_rwlock;
2625
mod pthread_condvar;
26+
mod queue_rwlock;
2727
pub(crate) use pthread_mutex::Mutex;
28-
pub(crate) use pthread_rwlock::RwLock;
28+
pub(crate) use queue_rwlock::RwLock;
2929
pub(crate) use pthread_condvar::Condvar;
3030
}
3131
}

library/std/src/sys/unix/locks/pthread_rwlock.rs

-195
This file was deleted.

0 commit comments

Comments
 (0)