comparison src/thread/amigaos/SDL_thread.c @ 21:75a95f82bc1f

Updated the Amiga OS port of SDL (thanks Gabriele)
author Sam Lantinga <slouken@lokigames.com>
date Thu, 10 May 2001 20:13:29 +0000
parents 74212992fb08
children e8157fcb3114
comparison
equal deleted inserted replaced
20:3dc008dc229d 21:75a95f82bc1f
263 SDL_DelThread(thread); 263 SDL_DelThread(thread);
264 free(thread); 264 free(thread);
265 } 265 }
266 } 266 }
267 267
268 Uint32 SDL_GetThreadID(SDL_Thread *thread)
269 {
270 Uint32 id;
271
272 if ( thread ) {
273 id = thread->threadid;
274 } else {
275 id = SDL_ThreadID();
276 }
277 return(id);
278 }
279
268 void SDL_KillThread(SDL_Thread *thread) 280 void SDL_KillThread(SDL_Thread *thread)
269 { 281 {
270 if ( thread ) { 282 if ( thread ) {
271 SDL_SYS_KillThread(thread); 283 SDL_SYS_KillThread(thread);
272 SDL_WaitThread(thread, NULL); 284 SDL_WaitThread(thread, NULL);