I am looking into getting some support for conditional variables in the
threads of SDL (pending approval from the powers that be, of course).
Basically, one or more threads can wait on a condition (SDL_CondWait())
and another thread can wake one (SDL_CondSignalOne()) or all
(SDL_CondSignalAll()) waiting threads.
This is easy enough to implement in POSIX threads because it’s already
there. For other UNIX systems I think it would be fairly easy to use the
same type of portable code that the mutex stuff does.
BeOS and Win32 are other beasts and I have no experience in their API.
Maybe there is already support or maybe something similar?
Anyway, I wanted to make sure that:
1) people would find it useful, and
2) someone else wasn't working on the same contribution.
The project I am working on might have use for it (hence I strive to get
it into SDL) but thought I would make the idea public in case there were
major thoughts from the group one way or another.
Paul Braman
@Paul_Braman