comparison src/thread/riscos/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
48 return (0); 48 return (0);
49 } 49 }
50 50
51 void 51 void
52 SDL_SYS_WaitThread(SDL_Thread * thread) 52 SDL_SYS_WaitThread(SDL_Thread * thread)
53 {
54 return;
55 }
56
57 void
58 SDL_SYS_KillThread(SDL_Thread * thread)
59 { 53 {
60 return; 54 return;
61 } 55 }
62 56
63 #else 57 #else
141 SDL_SYS_WaitThread(SDL_Thread * thread) 135 SDL_SYS_WaitThread(SDL_Thread * thread)
142 { 136 {
143 pthread_join(thread->handle, 0); 137 pthread_join(thread->handle, 0);
144 } 138 }
145 139
146 void
147 SDL_SYS_KillThread(SDL_Thread * thread)
148 {
149 #ifdef PTHREAD_CANCEL_ASYNCHRONOUS
150 pthread_cancel(thread->handle);
151 #else
152 pthread_kill(thread->handle, SIGKILL);
153 #endif
154 }
155
156 #endif 140 #endif
157 /* vi: set ts=4 sw=4 expandtab: */ 141 /* vi: set ts=4 sw=4 expandtab: */