[SDL] SDL_thread hangs on shutdown in winxp

Jacob Ole Juul Kolding dacobi at gmail.com
Tue Apr 24 08:56:37 PDT 2007


Hello List

I have just modified a program of mine to use SDL_threads.
In Unix it runs and quits nice, but in windows xp the program hangs when I
quit
and I can't figure out why..

I close the program like this:

    if(bRunning){ // bRunning == true means that a thread has been spawned.
        bRunning = false; // setting to false means that the thread function
will quit.
        SDL_UnlockMutex(mutex);
        SDL_WaitThread(thread, NULL);
        SDL_DestroyMutex(mutex);
    }

Am I doing something wrong?

/Jacob Kolding
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070424/10940ad5/attachment.htm>


More information about the SDL mailing list