comparison src/thread/os2/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
100 { 100 {
101 TID tid = thread->handle; 101 TID tid = thread->handle;
102 DosWaitThread(&tid, DCWW_WAIT); 102 DosWaitThread(&tid, DCWW_WAIT);
103 } 103 }
104 104
105 /* WARNING: This function is really a last resort.
106 * Threads should be signaled and then exit by themselves.
107 * TerminateThread() doesn't perform stack and DLL cleanup.
108 */
109 void
110 SDL_SYS_KillThread(SDL_Thread * thread)
111 {
112 DosKillThread(thread->handle);
113 }
114
115 /* vi: set ts=4 sw=4 expandtab: */ 105 /* vi: set ts=4 sw=4 expandtab: */