rust/library/std/src/sys
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
..
os_str PathBuf::as_mut_vec removed and verified for UEFI and Windows platforms #126333 2024-06-25 07:36:34 -06:00
pal Rollup merge of #125082 - kpreid:const-uninit, r=dtolnay 2024-06-24 15:51:01 -04:00
path std: move path into sys 2024-02-08 12:51:35 +01:00
personality Fix unwinding on 32-bit watchOS ARM 2024-05-05 15:41:55 +02:00
sync Add blank lines after module-level //! comments. 2024-06-20 09:23:20 +10:00
thread_local std: add safety comments 2024-06-28 10:44:26 +02:00
backtrace.rs std: move sys_common::backtrace to sys 2024-06-16 13:14:01 +02:00
cmath.rs Make cmath.rs a single file 2024-02-07 12:02:24 -03:00
mod.rs std: move sys_common::backtrace to sys 2024-06-16 13:14:01 +02:00