[SDL] Thread waiting...

Martin Holmgren tokkenizer at yahoo.se
Wed Oct 1 02:58:01 PDT 2003


Hello!

I have som problems with the thread drawing the
different Surfaces. Unfortunately I have realized that
one single thread handeling all the Surfaces is the
only way of doing this. 
Now the problem is how to give this thread the
different Surfaces. My idea is to "post" them to the
thread. And a while loop blits the Surfaces. Now this
while loop has to sleep until there is a new Surface
to be blited in the que. 
How do I tell this thread to wait until this Surface
buffer isn't empty. Something like SDL_WaitEvent...

Thanks for all help!!
/Martin

Höstrusk och grå moln - köp en resa till solen på Yahoo! Resor på adressen http://se.docs.yahoo.com/travel/index.html




More information about the SDL mailing list