D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17231 - Function to get name from Tid
Summary: Function to get name from Tid
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-27 18:17 UTC by Jack Stouffer
Modified: 2020-03-21 03:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jack Stouffer 2017-02-27 18:17:04 UTC

    
Comment 1 Jack Stouffer 2017-02-27 18:18:03 UTC
std.concurrency.locate allows for getting a Tid via a name, but there is no way to go the other way around.

std.concurrency.locate should have an overload which takes a Tid and returns a name.
Comment 2 Jack Stouffer 2017-04-12 15:28:41 UTC
Partial solution here https://github.com/dlang/phobos/pull/5205
Comment 3 RazvanN 2017-07-14 13:40:02 UTC
This is a duplicate of Issue 17234

*** This issue has been marked as a duplicate of issue 17234 ***
Comment 4 Jack Stouffer 2017-07-14 13:42:27 UTC
(In reply to RazvanN from comment #3)
> This is a duplicate of Issue 17234
> 
> *** This issue has been marked as a duplicate of issue 17234 ***

This issue was made a day before that other one.
Comment 5 RazvanN 2017-07-14 13:46:45 UTC
I made a PR for that issue and since you closed your PR for this one, I thought that marking this one as a duplicate would make more sense.
Comment 6 Vladimir Panteleev 2017-07-15 05:58:03 UTC
(In reply to RazvanN from comment #5)
> I made a PR for that issue and since you closed your PR for this one, I
> thought that marking this one as a duplicate would make more sense.

You may want to wait until your PR is merged before closing the respective issue. If your PR ends up being closed for whatever reason, then the "duplicate" issue will likely remain incorrectly closed.
Comment 7 basile-z 2020-02-20 11:59:04 UTC
Tid locate(string name);