Mercurial > sdl-ios-xcode
comparison src/thread/irix/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 |
---|---|
79 while (errno != ECHILD) { | 79 while (errno != ECHILD) { |
80 waitpid(thread->handle, NULL, 0); | 80 waitpid(thread->handle, NULL, 0); |
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 /* WARNING: This may not work for systems with 64-bit pid_t */ | |
85 void | |
86 SDL_KillThread(SDL_Thread * thread) | |
87 { | |
88 kill(thread->handle, SIGKILL); | |
89 } | |
90 | |
91 /* vi: set ts=4 sw=4 expandtab: */ | 84 /* vi: set ts=4 sw=4 expandtab: */ |