Skip to content

Rename main thread from "<main>" to "main" #33789

Closed
@WiSaGaN

Description

@WiSaGaN

Currently the main thread is named "

". See playground.
As a result, other thread names have to be of style "" to be consistent in logs or other outputs.

Since we only have this one thread that is named by the system, "<>" does not help in distinguishing system threads with other threads.

"main" is simpler, and more consistent with what a name should be.

The change may affect program behaviour though, as the name of the main thread can be used to determine whether the current thread is main thread.
If the main thread name has not been specified in any way, this may be considered not a breaking change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions