rust/library/std/tests/sync
Stuart Cook eda6dc9283
Rollup merge of #144651 - connortsui20:nonpoison_condvar, r=joboet
Implementation: `#[feature(nonpoison_condvar)]`

Tracking Issue: https://github.com/rust-lang/rust/issues/134645

This PR continues the effort made in https://github.com/rust-lang/rust/pull/144022 by adding the implementation of `nonpoison::condvar`.

Many of the changes here are similar to the changes made to implement `nonpoison::mutex`.

There are two other changes here. The first is that the `Barrier` implementation is migrated to use the `nonpoison::Condvar` instead of the `poison` variant. The second (which might be subject to some discussion) is that `WaitTimeoutResult` is moved up to `mod.rs`, as both `condvar` variants need that type (and I do not know if there is a better place to put it now).

### Related PRs

- `nonpoison_rwlock` implementation: https://github.com/rust-lang/rust/pull/144648
- `nonpoison_once` implementation: https://github.com/rust-lang/rust/pull/144653
2025-08-30 20:29:06 +10:00
..
barrier.rs Move std::sync unit tests to integration tests 2025-01-26 10:28:05 +00:00
condvar.rs add nonpoison and poison condvar tests 2025-08-23 09:20:44 -04:00
lazy_lock.rs modify LazyLock poison panic message 2025-08-22 14:59:34 -04:00
lib.rs add nonpoison and poison condvar tests 2025-08-23 09:20:44 -04:00
mpmc.rs library: Increase timeout on mpmc test to reduce flakes 2025-06-17 16:10:37 -07:00
mpsc.rs Avoid a gratuitous 10s wait in a stress test 2025-06-08 20:22:07 -07:00
mpsc_sync.rs Move std::sync unit tests to integration tests 2025-01-26 10:28:05 +00:00
mutex.rs add nonpoison and poison condvar tests 2025-08-23 09:20:44 -04:00
once.rs Mark some std tests as requiring panic = "unwind" 2025-03-10 08:31:06 -07:00
once_lock.rs Mark some std tests as requiring panic = "unwind" 2025-03-10 08:31:06 -07:00
reentrant_lock.rs Move std::sync unit tests to integration tests 2025-01-26 10:28:05 +00:00
rwlock.rs add nonpoison and poison rwlock tests 2025-08-09 08:41:27 +02:00