1
Fork 0

Auto merge of #95035 - m-ou-se:futex-locks-on-linux, r=Amanieu

Replace Linux Mutex and Condvar with futex based ones.

Tracking issue: https://github.com/rust-lang/rust/issues/93740
This commit is contained in:
bors 2022-04-05 20:17:08 +00:00
commit 306ba8357f
5 changed files with 251 additions and 41 deletions

View file

@ -191,7 +191,7 @@ fn wait_timeout_wake() {
#[test]
#[should_panic]
#[cfg_attr(not(unix), ignore)]
#[cfg(all(unix, not(target_os = "linux"), not(target_os = "android")))]
fn two_mutexes() {
let m = Arc::new(Mutex::new(()));
let m2 = m.clone();