[Issue 6989] Implement toString for std.concurrency.Tid
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 25 11:42:53 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6989
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-25 11:42:52 PST ---
Hmm it looks like there isn't such a thing as a cross-platform
thread-identifier (at least not in Druntime).
Personally I like the idea of having named threads, where the name would be
stored in a Tid. So you could do things like:
spawn("workThread", &func, args);
where the first pointer argument is the function. It might help with debugging,
e.g. inspecting a Tid of a LinkTerminated exception could tell you which named
thread threw the exception.
--
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