Condition variables?

Kris foo at bar.com
Sun Sep 30 19:18:37 PDT 2007


Condition-variables are also part of Tango. Cross platform and all :)

- Kris


"Roald Ribe" <rr.nospam at nospam.teikom.no> wrote in message 
news:fdnqiv$pmb$1 at digitalmars.com...
> Janice Caron wrote:
>> On 9/30/07, downs <default_357-line at yahoo.de> wrote:
>>> What does one need condition variables for?
>>> I'm honestly curious. I've written a few multithreaded programs in D
>>> and, so far, haven't needed them :)
>>
>> I would guess you're a Windows programmer?
>>
>> You don't need them in Windows. Windows has plenty of other mechanisms
>> for doing synchronisation. Condition variables is "the linux way".
>>
>> Still, I've never really got the hang of them either, so I'd love for
>> David to explain further.
>>
>> In any case, I don't think they could be put into Phobos except as a
>> wrapper around pthreads ... which doesn't exist on Windows. Oh what
>> joy.
>
> No?
>
> http://sourceware.org/pthreads-win32/
>
> Roald 





More information about the Digitalmars-d mailing list