Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
2778:38dfc890ee6b | 2779:4436464c4f51 |
---|---|
120 The return code for the thread function is placed in the area | 120 The return code for the thread function is placed in the area |
121 pointed to by 'status', if 'status' is not NULL. | 121 pointed to by 'status', if 'status' is not NULL. |
122 */ | 122 */ |
123 extern DECLSPEC void SDLCALL SDL_WaitThread(SDL_Thread * thread, int *status); | 123 extern DECLSPEC void SDLCALL SDL_WaitThread(SDL_Thread * thread, int *status); |
124 | 124 |
125 /* Forcefully kill a thread without worrying about its state */ | 125 /* This function is here for binary compatibility with legacy apps, but |
126 in SDL 1.3 and later, it's a no-op. You cannot forcibly kill a thread | |
127 in a safe manner on many platforms. You should instead find a way to | |
128 alert your thread that it is time to terminate, and then have it gracefully | |
129 exit on its own. Do not ever call this function! | |
130 */ | |
126 extern DECLSPEC void SDLCALL SDL_KillThread(SDL_Thread * thread); | 131 extern DECLSPEC void SDLCALL SDL_KillThread(SDL_Thread * thread); |
127 | 132 |
128 | 133 |
129 /* Ends C function definitions when using C++ */ | 134 /* Ends C function definitions when using C++ */ |
130 #ifdef __cplusplus | 135 #ifdef __cplusplus |