Mercurial > sdl-ios-xcode
comparison src/thread/SDL_thread.c @ 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 | c121d94672cb |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2778:38dfc890ee6b | 2779:4436464c4f51 |
---|---|
304 } | 304 } |
305 | 305 |
306 void | 306 void |
307 SDL_KillThread(SDL_Thread * thread) | 307 SDL_KillThread(SDL_Thread * thread) |
308 { | 308 { |
309 if (thread) { | 309 /* This is a no-op in SDL 1.3 and later. */ |
310 SDL_SYS_KillThread(thread); | |
311 SDL_WaitThread(thread, NULL); | |
312 } | |
313 } | 310 } |
314 | 311 |
315 /* vi: set ts=4 sw=4 expandtab: */ | 312 /* vi: set ts=4 sw=4 expandtab: */ |