rust/library/std/src/sys_common
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
..
net Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00
wtf8 Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
fs.rs fix: fs::remove_dir_all: treat ENOENT as success 2024-08-22 14:18:42 -04:00
io.rs Fix std tests for wasm32-wasip2 target 2024-09-29 04:48:13 +02:00
mod.rs std: replace LazyBox with OnceBox 2024-10-01 22:05:35 +02:00
net.rs Use &raw in the standard library 2024-09-25 17:03:20 -07:00
process.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
tests.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
wstr.rs Fix doc nits 2024-07-26 13:26:33 +01:00
wtf8.rs Use &raw in the standard library 2024-09-25 17:03:20 -07:00