On 28 Jun 2011, at 15:05, Andrew Brunner wrote:

On Tue, Jun 28, 2011 at 8:00 AM, Jonas Maebe <jonas.ma...@elis.ugent.be > wrote:

On 28 Jun 2011, at 14:58, 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.

pthread_mutex() does guarantee that. I don't know about the Windows
equivalents.

Specification just describes standard mutex.  What makes pthreads
specification different to include ordering?

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/ V1_chap04.html (point 4.11)


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to