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

Give schedulers and tasks useful names #2891

Closed
catamorphism opened this issue Jul 13, 2012 · 10 comments
Closed

Give schedulers and tasks useful names #2891

catamorphism opened this issue Jul 13, 2012 · 10 comments
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@catamorphism
Copy link
Contributor

tasks especially would be very helpful if they could be uniquely identified

@catamorphism
Copy link
Contributor Author

Not critical for 0.6, de-milestoning

@catamorphism
Copy link
Contributor Author

Nominating for milestone 5 (production-ready)

@graydon
Copy link
Contributor

graydon commented Jun 6, 2013

just a bug, removing milestone/nomination.

@bblum
Copy link
Contributor

bblum commented Jul 22, 2013

This should not be too hard, and would be super useful for writing test cases. All that's needed is an extra field in TaskOpts, and an Option<~str> inside the Task struct. One place to print the name would be when the task fails or is killed; can't think of any others at the moment.

@ghost ghost assigned bblum Jul 22, 2013
@bblum
Copy link
Contributor

bblum commented Jul 22, 2013

sub-bug of #2931

@bblum
Copy link
Contributor

bblum commented Jul 30, 2013

does our notion of having multiple schedulers support naming them? it's not as obvious how to do that as it is how to name tasks.

bblum added a commit to bblum/rust that referenced this issue Jul 31, 2013
@bblum
Copy link
Contributor

bblum commented Aug 2, 2013

I did this for tasks but not schedulers. Unassigning myself.

@huonw
Copy link
Member

huonw commented Nov 3, 2013

Tasks can now be named, and some tasks were given useful names in #10204 (the main task and the tasks for each test) and #10215 (calling the rustc task rustc), but there is still no way to name schedulers.

@alexcrichton
Copy link
Member

This is done now. I don't believe that we're going to want to give names to schedulers any time soon. That's an inherently M:N concept so libstd shouldn't be exposing that, and that's the use case that this is optimizing for anyway (naming tasks).

@thestinger
Copy link
Contributor

You can name a pthread on most operating systems. There are usually small length limits though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

6 participants