[fpc-devel] volatile variables

Henry Vermaak henry.vermaak at gmail.com
Tue Jun 28 15:56:49 CEST 2011

On 28/06/11 14:20, Andrew Brunner wrote:
> On Tue, Jun 28, 2011 at 8:11 AM, Jonas Maebe<jonas.maebe at elis.ugent.be>  wrote:
>> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html
>> (point 4.11)
> Nope.  Nothing about order - just access - and that is entirely on the
> application level - not system.
> 1.) Code execution on die is not controlled by pthreads implemention -
> as it is unaware at that level.

Of course it is.  They issue a hardware memory barrier.  This stops the 
cpu from reordering operations.  How do you think anything using 
pthreads will work if they didn't?


More information about the fpc-devel mailing list