rust/library/std/src/sys/sync
Matthias Krüger fe4c6e8657
Rollup merge of #128184 - joboet:refactor_pthread_sync, r=workingjubilee
std: refactor `pthread`-based synchronization

The non-trivial code for `pthread_condvar` is duplicated across the thread parking and the `Mutex`/`Condvar` implementations. This PR moves that code into `sys::pal`, which now exposes an `unsafe` wrapper type for `pthread_mutex_t` and `pthread_condvar_t`.
2024-12-01 08:15:21 +01:00
..
condvar Rollup merge of #128184 - joboet:refactor_pthread_sync, r=workingjubilee 2024-12-01 08:15:21 +01:00
mutex Rollup merge of #128184 - joboet:refactor_pthread_sync, r=workingjubilee 2024-12-01 08:15:21 +01:00
once update cfgs 2024-11-27 15:14:54 +00:00
rwlock update cfgs 2024-11-27 15:14:54 +00:00
thread_parking std: refactor pthread-based synchronization 2024-10-28 16:56:22 +01:00
mod.rs std: replace LazyBox with OnceBox 2024-10-01 22:05:35 +02:00
once_box.rs std: refactor pthread-based synchronization 2024-10-28 16:56:22 +01:00