std.experimental.logger formal review round 3

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 1 06:37:42 PDT 2014


On Wednesday, 1 October 2014 at 10:50:54 UTC, Kevin Lamonte wrote:
> 2. We have Tid in the API.  What about Fiber and Thread?  If we 
> can only pick one, I would vote for Thread rather than Tid, as 
> Tid's currently have no way to be uniquely identified in a 
> logging message.  Reference: 
> https://issues.dlang.org/show_bug.cgi?id=6989

In my opinion only solution that scales is to provide same ID as 
one used by std.concurrency - it can be thread, fiber, process or 
pretty much anything. There are many possible threading 
abstractions and all can't be easily supported, makes sense to 
stick to one considered standard.


More information about the Digitalmars-d mailing list