Skip to content

Give schedulers and tasks useful names #2891

Description

@catamorphism

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

Activity

  1. catamorphism commented on Mar 21, 2013

    @catamorphism
    ContributorAuthor

    Not critical for 0.6, de-milestoning

  2. catamorphism commented on May 14, 2013

    @catamorphism
    ContributorAuthor

    Nominating for milestone 5 (production-ready)

  3. graydon commented on Jun 6, 2013

    @graydon
    Contributor

    just a bug, removing milestone/nomination.

  4. bblum commented on Jul 22, 2013

    @bblum
    Contributor

    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.

  5. ghost assigned on Jul 22, 2013
  6. bblum commented on Jul 22, 2013

    @bblum
    Contributor

    sub-bug of #2931

  7. bblum commented on Jul 30, 2013

    @bblum
    Contributor

    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.

  8. bblum commented on Aug 2, 2013

    @bblum
    Contributor

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

  9. huonw commented on Nov 3, 2013

    @huonw
    Contributor

    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.

  10. alexcrichton commented on Dec 17, 2013

    @alexcrichton
    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).

  11. thestinger commented on Dec 17, 2013

    @thestinger
    Contributor

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

  12. added a commit that references this issue on May 12, 2023
  13. added a commit that references this issue on Jun 4, 2026
  14. added a commit that references this issue on Aug 21, 2026
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

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions