Skip to content

thread_local does not support types that implement Drop #18228

Closed
@carllerche

Description

@carllerche

I discussed this briefly with @aturon, but I thought I would submit an issue to track the discussion.

I have been trying to implement an equivalent to Java's thread park / unpark using #[thread_local] but it requires being able to run some cleanup code when the thread exits. This currently isn't possible but should be with a little help from rust's thread support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions