rust/library/std
joboet c1acccdf17
std: replace LazyBox with OnceBox
This PR replaces the `LazyBox` wrapper used to allocate the pthread primitives with `OnceBox`, which has a more familiar API mirroring that of `OnceLock`. This cleans up the code in preparation for larger changes like #128184 (from which this PR was split) and allows some neat optimizations, like avoid an acquire-load of the allocation pointer in `Mutex::unlock`, where the initialization of the allocation must have already been observed.

Additionally, I've gotten rid of the TEEOS `Condvar` code, it's just a duplicate of the pthread one anyway and I didn't want to repeat myself.
2024-10-01 22:05:35 +02:00
..
benches Reformat use declarations. 2024-07-29 08:26:52 +10:00
src std: replace LazyBox with OnceBox 2024-10-01 22:05:35 +02:00
tests Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
build.rs Enable f16 tests on x86 Apple platforms 2024-09-28 19:25:41 -04:00
Cargo.toml Update compiler_builtins to 0.1.130 2024-09-28 11:25:47 -04:00