This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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 <pinskia@gmail.com> wrote:On Sat, Feb 2, 2013 at 4:59 PM, Jeffrey Walton <noloader@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.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |