rust/library/std/src/sys
Matthias Krüger 0f544f280a
Rollup merge of #121666 - ChrisDenton:thread-name, r=cuviper
Use the OS thread name by default if `THREAD_INFO` has not been initialized

Currently if `THREAD_INFO` hasn't been initialized then the name will be set to `None`.  This PR changes it to use the OS thread name by default. This mostly affects foreign threads at the moment but we could expand this to make more use of the OS thread name in the future.

Note: I've only implemented `Thread::get_name` for windows, linux and macos (and macos adjacent) targets. The rest just return `None`.
2024-03-02 16:53:14 +01:00
..
locks moved tests file 2024-02-23 16:35:07 +01:00
os_str Move OsStr::slice_encoded_bytes validation to platform modules 2024-01-21 19:51:49 +01:00
pal Rollup merge of #121666 - ChrisDenton:thread-name, r=cuviper 2024-03-02 16:53:14 +01:00
path std: move path into sys 2024-02-08 12:51:35 +01:00
personality std: move personality implementation out of PAL 2024-01-13 18:30:44 +01:00
cmath.rs Make cmath.rs a single file 2024-02-07 12:02:24 -03:00
mod.rs std: move locks to sys on µITRON 2024-02-16 12:10:07 +01:00