Thread overview
[Issue 17234] access to registered thread names
Jul 14, 2017
RazvanN
Jul 14, 2017
RazvanN
Feb 20
Basile-z
Mar 21
Basile-z
July 14, 2017
https://issues.dlang.org/show_bug.cgi?id=17234

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
PR : https://github.com/dlang/phobos/pull/5609

--
July 14, 2017
https://issues.dlang.org/show_bug.cgi?id=17234

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jack@jackstouffer.com

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
*** Issue 17231 has been marked as a duplicate of this issue. ***

--
February 20
https://issues.dlang.org/show_bug.cgi?id=17234

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |b2.temp@gmx.com
         Resolution|---                         |WORKSFORME

--- Comment #3 from Basile-z <b2.temp@gmx.com> ---
this was added at some point: Tid locate(string name);

--
February 20
https://issues.dlang.org/show_bug.cgi?id=17234

Simen Kjaeraas <simen.kjaras@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |simen.kjaras@gmail.com
         Resolution|WORKSFORME                  |---

--- Comment #4 from Simen Kjaeraas <simen.kjaras@gmail.com> ---
locate goes the opposite way: Given a name, get the tid. What's being requested here is given a tid, get the name(s).

Something like this:

/**
 * Gets the names associated with tid.
 *
 * Params:
 *  tid = The Tid to locate within the registry.
 *
 * Returns:
 *  The associated names or null if tid is not registered.
 */
string[] locate(Tid tid) {
    synchronized (registryLock)
    {
        if (auto name = tid in namesByTid)
            return *name;
        return [];
    }
}

--
March 21
https://issues.dlang.org/show_bug.cgi?id=17234

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--