Skip to content

add language-level support for thread-local data #10310

Closed
@thestinger

Description

@thestinger

LLVM has a thread_local specifier, for fast thread-local data. This could be exposed with a #[thread_local] attribute.

It will still be necessary for #[thread_local] static mut to be unsafe, because a borrow would have a 'static lifetime and freezing wouldn't really be possible...

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions