Re: [AD] public thread API

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2008-08-08, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> On 2008-08-08, Peter Hull <peterhull90@xxxxxxxxxx> wrote:
> > I've never really understood condition variables (so apologies in
> > advance!) but AFAIK there are no condition variables in the Windows
> > API. Are you planning to implement them somehow?
> 
> Did it a few years ago :)
> 
> With a disclaimer: it turns out that condition variables are hard to
> implement using Win32 thread primitives, and really hard if you want to
> conform to all the details of the POSIX spec.  So I didn't try to do *that*.

For the record, I should point out that what I actually did was
translate someone else's algorithm (see src/win/wxthread.c).

 * The algorithm used in this implementation is that developed by
 * Alexander Terekhov in colaboration with Louis Thomas.

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/