Skip to content

Add support for pinning tasks to a certain worker thread #598

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

Closed
eholk opened this issue Jun 30, 2011 · 1 comment
Closed

Add support for pinning tasks to a certain worker thread #598

eholk opened this issue Jun 30, 2011 · 1 comment

Comments

@eholk
Copy link
Contributor

eholk commented Jun 30, 2011

Add a pinned_on field to rust_task. Add runtime support for setting and unsetting this. Make the scheduler respect it.

@ghost ghost assigned eholk Jun 30, 2011
@eholk eholk closed this as completed in 63dcd32 Jun 30, 2011
@eholk
Copy link
Contributor Author

eholk commented Jun 30, 2011

std::task now includes pin() and unpin(), which pin the task the the thread it is currently running on.

However, it doesn't yet inherit.

@eholk eholk reopened this Jun 30, 2011
@eholk eholk closed this as completed in b3e5b5b Jun 30, 2011
@eholk eholk removed their assignment Jun 16, 2014
flip1995 pushed a commit to flip1995/rust that referenced this issue Oct 18, 2024
Implement lint for regex::Regex compilation inside a loop

Closes rust-lang#598.

Seems like a pretty simple one, I'm not sure if I sorted out all the lint plumbing correctly because I was adding it to the existing regex pass, but seems to work. The name is a bit jank and I'm super open to suggestions for changing it.

changelog: [`regex_creation_in_loops`]: Added lint for Regex compilation inside loops.
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

1 participant