Mercurial > sdl-ios-xcode
diff include/SDL_thread.h @ 2779:4436464c4f51
Fixed Bugzilla bug #205
Removed SDL_KillThread() from the API, as it isn't safe on many platforms.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 24 Nov 2008 00:18:42 +0000 |
parents | 866052b01ee5 |
children | 99210400e8b9 |
line wrap: on
line diff
--- a/include/SDL_thread.h Sat Nov 22 06:59:22 2008 +0000 +++ b/include/SDL_thread.h Mon Nov 24 00:18:42 2008 +0000 @@ -122,7 +122,12 @@ */ extern DECLSPEC void SDLCALL SDL_WaitThread(SDL_Thread * thread, int *status); -/* Forcefully kill a thread without worrying about its state */ +/* This function is here for binary compatibility with legacy apps, but + in SDL 1.3 and later, it's a no-op. You cannot forcibly kill a thread + in a safe manner on many platforms. You should instead find a way to + alert your thread that it is time to terminate, and then have it gracefully + exit on its own. Do not ever call this function! + */ extern DECLSPEC void SDLCALL SDL_KillThread(SDL_Thread * thread);