Optimization of conditional access to globals: thread-unsafe?

Tomash Brechko tomash.brechko@gmail.com
Mon Oct 22 11:26:00 GMT 2007


On Mon, Oct 22, 2007 at 12:19:40 +0100, Dave Korn wrote:
>   *What* mutex are you referring to?  There is no mutex in that code.

I was talking about the code in the comment#7.  For the code in the
comment#1, the piece is simply incomplete.  For it, mutex should be
used if x < 99, not clear if x >= 99.


-- 
   Tomash Brechko



More information about the Gcc mailing list