about summary refs log tree commit diff
path: root/library/std/src/sys/unsupported/locks
AgeCommit message (Collapse)AuthorLines
2024-01-11std: begin moving platform support modules into `pal`joboet-129/+0
2022-11-06std: remove lock wrappers in `sys_common`joboet-17/+11
2022-09-25Auto merge of #98457 - japaric:gh98378, r=m-ou-sebors-0/+3
make Condvar, Mutex, RwLock const constructors work with the `unsupported` impl applying this patch locally to the `rust-src` component fixes #98378 however, the solution seems wrong to me because PR #97791 didn't add any `rustc_const_stable` attribute to underlying implementations like `std::sys::unix::futex`, so I must be missing something about how const-stability is checked ... maybe the `restricted_std` feature (gate?) has an effect? fixes #98378 fixes #98293 (probably)
2022-09-20Auto merge of #100581 - joboet:sync_rwlock_everywhere, r=thomccbors-1/+1
std: use `sync::RwLock` for internal statics Since `sync::RwLock` is now `const`-constructible, it can be used for internal statics, removing the need for `sys_common::StaticRwLock`. This adds some extra allocations on platforms which need to box their locks (currently SGX and some UNIX), but these will become unnecessary with the lock improvements tracked in #93740.
2022-09-19std: use `sync::RwLock` for internal staticsjoboet-1/+1
2022-09-03std: make `ReentrantMutex` movable and `const`; simplify `Stdout` initializationjoboet-3/+0
2022-06-27make Condvar, Mutex, RwLock const constructors work with unsupported implJorge Aparicio-0/+3
2022-06-06Make all {Mutex, Condvar, RwLock}::new #[inline].Mara Bos-0/+3
2022-06-03Lazily allocate+initialize locks.Mara Bos-3/+0
2022-06-03Use Drop instead of destroy() for locks.Mara Bos-9/+0
2022-04-18Remove forgotten reexport of ReentrantMutex in sys::unsupported.Mara Bos-1/+1
2022-04-16Use a single ReentrantMutex implementation on all platforms.Mara Bos-23/+0
2022-04-06Rename RWLock to RwLock in std::sys.Mara Bos-8/+8
2022-03-22Move std::sys::{mutex, condvar, rwlock} to std::sys::locks.Mara Bos-0/+167