about summary refs log tree commit diff
path: root/library/std/src/sys_common/thread_info.rs
AgeCommit message (Collapse)AuthorLines
2024-03-31std: move `thread::current` TLS variable out of `thread_info`joboet-53/+0
2024-02-27Use the OS thread name by default for the current threadChris Denton-1/+3
2023-09-11Refactor `thread_info` to remove the `RefCell`Trevor Gross-16/+21
`thread_info` currently uses `RefCell`-based initialization. Refactor this to use `OnceCell` instead which is more performant and better suits the needs of one-time initialization.
2023-07-24remove additional [allow(unused_unsafe)]James Dietz-1/+0
2021-09-16Merge two THREAD_INFO.with and following RefCell borrowbjorn3-2/+5
This is a bit faster
2021-09-16Replace a couple of asserts with rtassert! in rt codebjorn3-1/+1
This replaces a couple of panic locations with hard aborts. The panics can't be catched by the user anyway in these locations.
2021-09-16Remove unused functionbjorn3-4/+0
2021-09-16Use const {} for the THREAD_INFO thread localbjorn3-1/+2
This makes accesses to it cheaper
2021-09-16Optimize ThreadInfo::withbjorn3-6/+7
The RefCell is now borrowed exactly once. In addition a code sequence that contains an unwrap that is guaranteed to never panic at runtime is replaced with get_or_insert_with, which makes the intended behavior clearer and will not emit code to panic even without optimizations.
2020-07-27mv std libs to library/mark-0/+46