Skip to content

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

Closed
@thestinger

Description

@thestinger
Contributor

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...

Activity

added a commit that references this issue on Nov 26, 2013

auto merge of #10312 : thestinger/rust/thread_local, r=alexcritchton

35ebf03
added a commit that references this issue on Feb 26, 2023

Auto merge of rust-lang#10310 - c410-f3r:arith-2, r=Alexendoo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Participants

      @thestinger

      Issue actions

        add language-level support for thread-local data · Issue #10310 · rust-lang/rust