[fpc-devel] volatile variables
mschnell at lumino.de
Tue Jun 28 15:22:08 CEST 2011
On 06/28/2011 02:58 PM, Andrew Brunner wrote:
> A mutex may be able to atomically block access because of its own
> memory barrier, but I would suggest that employing such a technique on
> multi-core systems will not ensure an accurate value.
If this is true, how can any multithreaded be done ?
Only the ordering decision "inside" vs "outside" of the critical section
is necessary for threaded user application. If both Enter and Leave do a
"full fence" barrier, I suppose we are safe.
More information about the fpc-devel