[SDL] how to detect if a thread is still running
slouken at devolution.com
Tue Jul 23 11:01:00 PDT 2002
> When I create a thread I get a pointer to an SDL_Thread structure.
> It seems to me I can use the status field to detect whether the thread has
> finished, but to use it, I have to include SDL_Thread_c.h which seems not to
> be meant to be included.
> So what is the correct, platform independent, way to do this?
I usually have a global variable and set it when I want the thread to quit.
-Sam Lantinga, Software Engineer, Blizzard Entertainment
More information about the SDL