This is the mail archive of the
mailing list for the GCC project.
Re: Optimization of conditional access to globals: thread-unsafe?
>>>>> "Sam" == Samuel Tardieu <firstname.lastname@example.org> writes:
Sam> In the following example, is the access to "Shared" considered
Sam> unsynchronized even though what looks like a proper lock is used
Sam> around it?
Call to Always_Unlock was incorrect in the previous example, a fixed
one exhibiting the bug is now at http://pastebin.com/f1bc7ba32
Samuel Tardieu -- email@example.com -- http://www.rfc1149.net/