about summary refs log tree commit diff
path: root/library/std/src/sys/hermit/mutex.rs
AgeCommit message (Collapse)AuthorLines
2022-09-09std: use futex-based locks and thread parker on Hermitjoboet-212/+0
2022-09-08Rollup merge of #101423 - mkroening:hermit-warnings, r=sanxiynMichael Goulet-1/+0
Fix hermit warnings This fixes two `unused_imprt` and one `dead_code` warning for hermit.
2022-09-05Hermit: Fix unused_importsMartin Kröning-1/+0
2022-09-03std: make `ReentrantMutex` movable and `const`; simplify `Stdout` initializationjoboet-3/+0
2022-06-26Hermit: Make Mutex::init a no-opMartin Kröning-3/+1
2022-06-03Use Drop instead of destroy() for locks.Mara Bos-3/+0
2022-04-16Use a single ReentrantMutex implementation on all platforms.Mara Bos-36/+0
2021-11-24Improving the readabilityStefan Lankes-1/+1
Co-authored-by: kennytm <kennytm@gmail.com>
2021-11-24If the thread does not get the lock in the short term, yield the CPUStefan Lankes-1/+10
Reduces the amount of wasted processor cycles
2021-08-13Don't put hermit mutexes in a box.Martin Kröning-1/+1
Hermit mutexes are movable.
2021-06-25Fix a few misspellings.Eric Huss-1/+1
2021-01-13deprecate atomic::spin_loop_hint in favour of hint::spin_loopAshley Mannix-2/+3
2020-10-13box mutex to get a movable mutexStefan Lankes-1/+1
the commit avoid an alignement issue in Mutex implementation
2020-10-12define required type 'MovableMutex'Stefan Lankes-0/+2
2020-10-11revise code to pass the format checkStefan Lankes-3/+3
2020-10-11fix typos in new methodStefan Lankes-1/+5
2020-10-11revise comments and descriptions of the helper functionsStefan Lankes-3/+2
2020-10-11revise code to pass the format checkStefan Lankes-14/+5
2020-10-11revise Hermit's mutex interface to support the behaviour of StaticMutexStefan Lankes-8/+182
rust-lang/rust#77147 simplifies things by splitting this Mutex type into two types matching the two use cases: StaticMutex and MovableMutex. To support the behavior of StaticMutex, we move part of the mutex implementation into libstd.
2020-07-27mv std libs to library/mark-0/+77