[Issue 6989] Implement toString for std.concurrency.Tid

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 25 11:34:27 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=6989



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-03-25 11:34:26 PDT ---
(In reply to comment #1)
> Hmm it looks like there isn't such a thing as a cross-platform
> thread-identifier (at least not in Druntime).

Nevermind, there's actually m_addr, which is a uint on Windows and pthread_t on
Posix (a pointer to _opaque_pthread_t).

So I think core.thread.Thread should expose a getThreadID() function which
returns m_addr, and then Tid can expose this function internally and also use
it for toString().

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list