Thanks Andrew.

So, it looks like I don't understand sequence points. Please forgive
my ignorance.

What does C/C++ and GCC offer to ensure writes are complete before
reads are performed on a value in a multi-threaded program?

Jeff

On Sat, Feb 2, 2013 at 8:07 PM, Andrew Pinski <pins...@gmail.com> wrote:
> On Sat, Feb 2, 2013 at 4:59 PM, Jeffrey Walton <noloa...@gmail.com> wrote:
>> Hi All,
>>
>> How do I add a sequence point in my C/C++ code?
>
> A semi-colon (end of the statement), a comma (but not as an argument
> separator though) are both sequence points.
>
> Thanks,
> Andrew Pinski
>
>>
>> Googling brings up a lot of 'volatile' hits, but I believe that's an
>> abuse of GCC's interpretation of volatile since I'm not working with
>> memory mapped hardware or registers.

Reply via email to