about summary refs log tree commit diff
path: root/library/std/src/sys_common/rwlock.rs
AgeCommit message (Collapse)AuthorLines
2021-06-01Multiple improvements to RwLocksBenoƮt du Garreau-37/+83
- Split `sys_common::RWLock` between `StaticRWLock` and `MovableRWLock` - Unbox `RwLock` on some platforms (Windows, Wasm and unsupported) - Simplify `RwLock::into_inner`
2021-04-21Move `sys_common::rwlock::StaticRWLock` etc. to `sys::unix::rwlock`Christiaan Dirkx-59/+0
2021-03-14Revert "Revert "use RWlock when accessing os::env #81850""The8472-0/+59
This reverts commit acdca316c3d42299d31c1b47eb792006ffdfc29c.
2021-03-07Revert "use RWlock when accessing os::env #81850"Eric Huss-59/+0
This reverts commit 354f19cf2475148994954b6783341620c7445071, reversing changes made to 0cfba2fd090834c909d5ed9deccdee8170da791b.
2021-02-24library: Normalize safety-for-unsafe-block commentsMiguel Ojeda-2/+2
Almost all safety comments are of the form `// SAFETY:`, so normalize the rest and fix a few of them that should have been a `/// # Safety` section instead. Furthermore, make `tidy` only allow the uppercase form. While currently `tidy` only checks `core`, it is a good idea to prevent `core` from drifting to non-uppercase comments, so that later we can start checking `alloc` etc. too. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2021-02-09split guard into read and write typesThe8472-15/+14
2021-02-08introduce StaticRWLock wrapper to make methods safeThe8472-49/+60
2021-02-07silence dead code warnings on windowsThe8472-0/+5
2021-02-07use rwlock for accessing ENVThe8472-0/+44
2020-07-27mv std libs to library/mark-0/+88