Condition variables?

Sean Kelly sean at f4.ca
Tue Oct 2 09:52:35 PDT 2007


Janice Caron wrote:
> On 10/2/07, David Brown <dlang at davidb.org> wrote:
> 
>> This feature is the very magic about condition variables that makes race
>> free synchronization possible where it isn't with events.
> 
> Now that part is not right. Race-free synchronization is /always/
> possible with events. (Note, however, that I say "possible", not
> "guaranteed".

How so?  Win32 events are widely regarded as broken on 
comp.programming.threads specifically because of race issues with them. 
  Personally, I think they're fine with only one consumer, but things 
get a bit odd with multiple consumers.


Sean



More information about the Digitalmars-d mailing list