+greg. I'm not sure either tbh, if there's no contention the cost of acquiring the mutex should be free, and if there is contention then the lock is required.<br><div class="gmail_quote">On Mon, May 11, 2015 at 7:29 AM Ed Maste <<a href="mailto:emaste@freebsd.org">emaste@freebsd.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 8 May 2015 at 14:50, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>> wrote:<br>
> Author: zturner<br>
> Date: Fri May 8 13:50:54 2015<br>
> New Revision: 236892<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=236892&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=236892&view=rev</a><br>
> Log:<br>
> Enable thread-safe logging.<br>
<br>
Thanks for fixing this up Zach.<br>
<br>
This raises a question though, going back to the original introduction<br>
of logging support -- why is this an option at all, never mind a user<br>
facing option? It's particularly odd that we default to thread-safe,<br>
unless any other options are specified. It seems to me we should just<br>
remove the thread-unsafe path.<br>
</blockquote></div>