Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Join to a new thread on exhaustion #9

Open
pepyakin opened this issue Nov 30, 2018 · 2 comments
Open

Join to a new thread on exhaustion #9

pepyakin opened this issue Nov 30, 2018 · 2 comments

Comments

@pepyakin
Copy link
Contributor

pepyakin commented Nov 30, 2018

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.

@alexcrichton
Copy link
Member

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

@nagisa
Copy link
Member

nagisa commented Oct 6, 2019

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants