comparison src/thread/pthread/SDL_systhread.c @ 1402:d910939febfa

Use consistent identifiers for the various platforms we support. Make sure every source file includes SDL_config.h, so the proper system headers are chosen.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 08:46:50 +0000
parents 19418e4422cb
children 1e8582152d44
comparison
equal deleted inserted replaced
1401:1819fd069e89 1402:d910939febfa
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h"
22 23
23 #include <pthread.h> 24 #include <pthread.h>
24 #include <signal.h> 25 #include <signal.h>
25 26
26 #include "SDL_thread.h" 27 #include "SDL_thread.h"
94 void SDL_SYS_KillThread(SDL_Thread *thread) 95 void SDL_SYS_KillThread(SDL_Thread *thread)
95 { 96 {
96 #ifdef PTHREAD_CANCEL_ASYNCHRONOUS 97 #ifdef PTHREAD_CANCEL_ASYNCHRONOUS
97 pthread_cancel(thread->handle); 98 pthread_cancel(thread->handle);
98 #else 99 #else
99 #ifdef __FreeBSD__ 100 #ifdef __FREEBSD__
100 #warning For some reason, this doesnt actually kill a thread - FreeBSD 3.2 101 #warning For some reason, this doesnt actually kill a thread - FreeBSD 3.2
101 #endif 102 #endif
102 pthread_kill(thread->handle, SIGKILL); 103 pthread_kill(thread->handle, SIGKILL);
103 #endif 104 #endif
104 } 105 }