From 5282223c793ab3e0b77587d9d36d1f99644cbdaa Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 24 May 2010 22:56:36 -0700 Subject: [PATCH] SDL_KillThread() is no longer supported - it was always dangerous! :) --- include/SDL_compat.h | 1 + include/SDL_thread.h | 10 ---------- src/SDL_compat.c | 1 - src/thread/SDL_thread.c | 6 ------ 4 files changed, 1 insertion(+), 17 deletions(-) diff --git a/include/SDL_compat.h b/include/SDL_compat.h index 3b7a7acf7..1af228ac5 100644 --- a/include/SDL_compat.h +++ b/include/SDL_compat.h @@ -324,6 +324,7 @@ extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable); #define SDL_RenderPoint SDL_RenderDrawPoint #define SDL_RenderLine SDL_RenderDrawLine #define SDL_RenderFill(X) (X) ? SDL_RenderFillRect(X) : SDL_RenderClear() +#define SDL_KillThread(X) extern DECLSPEC int SDLCALL SDL_putenv(const char *variable); diff --git a/include/SDL_thread.h b/include/SDL_thread.h index fc3d36d75..cca172dee 100644 --- a/include/SDL_thread.h +++ b/include/SDL_thread.h @@ -149,16 +149,6 @@ extern DECLSPEC SDL_threadID SDLCALL SDL_GetThreadID(SDL_Thread * thread); */ extern DECLSPEC void SDLCALL SDL_WaitThread(SDL_Thread * thread, int *status); -/** - * \deprecated 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); - /* Ends C function definitions when using C++ */ #ifdef __cplusplus diff --git a/src/SDL_compat.c b/src/SDL_compat.c index 0c094e8a7..87feffc8d 100644 --- a/src/SDL_compat.c +++ b/src/SDL_compat.c @@ -1750,7 +1750,6 @@ SDL_EnableUNICODE(int enable) return previous; } - int SDL_putenv(const char *_var) { diff --git a/src/thread/SDL_thread.c b/src/thread/SDL_thread.c index 08181cac9..8004757de 100644 --- a/src/thread/SDL_thread.c +++ b/src/thread/SDL_thread.c @@ -305,10 +305,4 @@ SDL_GetThreadID(SDL_Thread * thread) return id; } -void -SDL_KillThread(SDL_Thread * thread) -{ - /* This is a no-op in SDL 1.3 and later. */ -} - /* vi: set ts=4 sw=4 expandtab: */