]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #98707 - joboet:fuchsia_locks, r=m-ou-se
authorMatthias Krüger <matthias.krueger@famsik.de>
Thu, 21 Jul 2022 16:42:02 +0000 (18:42 +0200)
committerGitHub <noreply@github.com>
Thu, 21 Jul 2022 16:42:02 +0000 (18:42 +0200)
commitc5df2f02d32b48c64ee160ddb4a98edc5ea01888
tree160795284b8793c639a504b5bad86addd5dc30a7
parent1673f1450eeaf4a5452e086db0fe2ae274a0144f
parent8ba02f18b813aa8ea2599979567797bbb9dc3ecb
Rollup merge of #98707 - joboet:fuchsia_locks, r=m-ou-se

std: use futex-based locks on Fuchsia

This switches `Condvar` and `RwLock` to the futex-based implementation currently used on Linux and some BSDs. Additionally, `Mutex` now has its own, priority-inheriting implementation based on the mutex in Fuchsia's `libsync`. It differs from the original in that it panics instead of aborting when reentrant locking is detected.

````@rustbot```` ping fuchsia
r? ````@m-ou-se````