Race conditions in critical.c?

Sean Kelly sean at invisibleduck.org
Tue Sep 30 21:48:28 PDT 2008


Bartosz Milewski wrote:
> 
> If you think this is bizarre bordering on reckless I'm with you.

Yup, it's completely useless given that POSIX only provides guarantees 
for visibility, etc, for threads entering the *same* mutex.  So one 
couldn't even argue that this approach would work as some strange sort 
of memory barrier.


Sean



More information about the Digitalmars-d mailing list