rust/library/std
Matthias Krüger 1e39eb7d53
Rollup merge of #126953 - joboet:lazy_key, r=jhpratt
std: separate TLS key creation from TLS access

Currently, `std` performs an atomic load to get the OS key on every access to `StaticKey` even when the key is already known. This PR thus replaces `StaticKey` with the platform-specific `get` and `set` function and a new `LazyKey` type that acts as a `LazyLock<Key>`, allowing the reuse of the retreived key for multiple accesses.

Related to #110897.
2024-06-29 09:14:56 +02:00
..
benches also test parts of std 2024-04-07 10:05:57 +02:00
src Rollup merge of #126953 - joboet:lazy_key, r=jhpratt 2024-06-29 09:14:56 +02:00
tests Add blank lines after module-level //! comments. 2024-06-20 09:23:20 +10:00
build.rs Add build.rs config for reliable f16 and f128 2024-06-25 01:32:36 -04:00
Cargo.toml add HermitOS support of vectored read/write operations 2024-06-07 20:48:30 +02:00