[Issue 6989] New: Implement toString for std.concurrency.Tid
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 22 13:12:38 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6989
Summary: Implement toString for std.concurrency.Tid
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-11-22 13:11:43 PST ---
Currently calling write() on a Tid prints:
Tid(std.concurrency.MessageBox)
In earlier versions this used to be:
Tid
In either case, this isn't much information. I think it would be useful if
toString was overloaded and returned a string with some sort of unique thread
ID, e.g.:
writeln(spawn(&test)); // Tid(0x0001)
This could make it easier to debug some types of threading problems without
having to use a debugger.
--
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