std.experimental.logger formal review round 3

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 14 13:49:08 PST 2014


On Friday, 14 November 2014 at 21:46:00 UTC, Robert burner 
Schadek wrote:
> You can always roll your own non locking Logger, but the 
> default should be thread-safe.

You can't, since you need to inherit from Logger, which already 
does the locking for you in a way that's not overridable. Also, I 
take it you are familiar with the fact that locks aren't the only 
technique for achieving cross-thread synchronization.

David


More information about the Digitalmars-d mailing list