Skip to content

Join to a new thread on exhaustion #9

Open
@pepyakin

Description

@pepyakin
Contributor

As an idea for fallback: on unsupported platforms spawn a new thread and join the current thread to the newly created. This is portable but works only with std though.

Activity

alexcrichton

alexcrichton commented on Dec 1, 2018

@alexcrichton
Member

Perhaps! I think the only downside is that TLS wouldn't work, but perhaps that just means this could be opt-in?

nagisa

nagisa commented on Oct 6, 2019

@nagisa
Member

An additional concern is that we would be limited to executing callbacks that are Send only, which would introduce an unnecessary constraint on platforms which do support switching.

We currently support a fair number of targets and it is not unfeasible to add more, so I think this issue is and will become less relevant over time.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @alexcrichton@nagisa@pepyakin

        Issue actions

          Join to a new thread on exhaustion · Issue #9 · rust-lang/stacker