SDL_KillThread() is no longer supported - it was always dangerous! :)
authorSam Lantinga <slouken@libsdl.org>
Mon, 24 May 2010 22:56:36 -0700
changeset 446882f357a91d43
parent 4467 0baef09fe702
child 4469 f67139f6d87f
SDL_KillThread() is no longer supported - it was always dangerous! :)
include/SDL_compat.h
include/SDL_thread.h
src/SDL_compat.c
src/thread/SDL_thread.c
     1.1 --- a/include/SDL_compat.h	Mon May 17 23:13:33 2010 -0700
     1.2 +++ b/include/SDL_compat.h	Mon May 24 22:56:36 2010 -0700
     1.3 @@ -324,6 +324,7 @@
     1.4  #define SDL_RenderPoint SDL_RenderDrawPoint
     1.5  #define SDL_RenderLine SDL_RenderDrawLine
     1.6  #define SDL_RenderFill(X)  (X) ? SDL_RenderFillRect(X) : SDL_RenderClear()
     1.7 +#define SDL_KillThread(X)
     1.8  
     1.9  extern DECLSPEC int SDLCALL SDL_putenv(const char *variable);
    1.10  
     2.1 --- a/include/SDL_thread.h	Mon May 17 23:13:33 2010 -0700
     2.2 +++ b/include/SDL_thread.h	Mon May 24 22:56:36 2010 -0700
     2.3 @@ -149,16 +149,6 @@
     2.4   */
     2.5  extern DECLSPEC void SDLCALL SDL_WaitThread(SDL_Thread * thread, int *status);
     2.6  
     2.7 -/**
     2.8 - *  \deprecated This function is here for binary compatibility with legacy apps,
     2.9 - *              but in SDL 1.3 and later, it's a no-op.
    2.10 - *  
    2.11 - *  You cannot forcibly kill a thread in a safe manner on many platforms. You 
    2.12 - *  should instead find a way to alert your thread that it is time to terminate,
    2.13 - *  and then have it gracefully exit on its own. Do not ever call this function!
    2.14 - */
    2.15 -extern DECLSPEC void SDLCALL SDL_KillThread(SDL_Thread * thread);
    2.16 -
    2.17  
    2.18  /* Ends C function definitions when using C++ */
    2.19  #ifdef __cplusplus
     3.1 --- a/src/SDL_compat.c	Mon May 17 23:13:33 2010 -0700
     3.2 +++ b/src/SDL_compat.c	Mon May 24 22:56:36 2010 -0700
     3.3 @@ -1750,7 +1750,6 @@
     3.4      return previous;
     3.5  }
     3.6  
     3.7 -
     3.8  int
     3.9  SDL_putenv(const char *_var)
    3.10  {
     4.1 --- a/src/thread/SDL_thread.c	Mon May 17 23:13:33 2010 -0700
     4.2 +++ b/src/thread/SDL_thread.c	Mon May 24 22:56:36 2010 -0700
     4.3 @@ -305,10 +305,4 @@
     4.4      return id;
     4.5  }
     4.6  
     4.7 -void
     4.8 -SDL_KillThread(SDL_Thread * thread)
     4.9 -{
    4.10 -    /* This is a no-op in SDL 1.3 and later. */
    4.11 -}
    4.12 -
    4.13  /* vi: set ts=4 sw=4 expandtab: */