This is the mail archive of the gcc-help@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] |
"Adam Olsen" <rhamph@gmail.com> writes:
For example, if I had "struct { char foo; char bar[3]; }", where my first thread had a pointer to foo and was modifying it, while my second thread had a pointer to bar and was modifying it, would that meet the requirements? My understanding is that a C compiler can (and in many cases, will) use larger writes so long as they appear the same for a single-threaded program; this obviously breaks threading though.
Yes, that can happen.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |