comparison src/thread/win32/SDL_systhread.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
162 { 162 {
163 WaitForSingleObject(thread->handle, INFINITE); 163 WaitForSingleObject(thread->handle, INFINITE);
164 CloseHandle(thread->handle); 164 CloseHandle(thread->handle);
165 } 165 }
166 166
167 /* WARNING: This function is really a last resort.
168 * Threads should be signaled and then exit by themselves.
169 * TerminateThread() doesn't perform stack and DLL cleanup.
170 */
171 void
172 SDL_SYS_KillThread(SDL_Thread * thread)
173 {
174 TerminateThread(thread->handle, FALSE);
175 }
176
177 /* vi: set ts=4 sw=4 expandtab: */ 167 /* vi: set ts=4 sw=4 expandtab: */