about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-02 16:53:14 +0100
committerGitHub <noreply@github.com>2024-03-02 16:53:14 +0100
commit0f544f280a52a5a503e413f230c4be1e22be5fcc (patch)
tree5a2d0bdc564a684496aeedea40709d3500e8d71e /compiler/rustc_codegen_gcc/example/std_example.rs
parent5257aee7dd163d21d32fa904578d4fb0f4c91b79 (diff)
parent6cb0c404b349657f8ed2171a5f8ec90254a4d0fd (diff)
downloadrust-0f544f280a52a5a503e413f230c4be1e22be5fcc.tar.gz
rust-0f544f280a52a5a503e413f230c4be1e22be5fcc.zip
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`.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions