Race conditions in critical.c?

Sean Kelly sean at invisibleduck.org
Tue Sep 30 21:49:11 PDT 2008


Sean Kelly wrote:
> 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.

Oh, and I haven't fixed critical.c for the same reason.  Given how they 
work, does *anyone* use this feature?


Sean



More information about the Digitalmars-d mailing list