Mercurial > sdl-ios-xcode
comparison src/thread/pth/SDL_systhread.c @ 1361:19418e4422cb
New configure-based build system. Still work in progress, but much improved
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 16 Feb 2006 10:11:48 +0000 |
parents | c71e05b4dc2e |
children | d910939febfa |
comparison
equal
deleted
inserted
replaced
1360:70a9cfb4cf1b | 1361:19418e4422cb |
---|---|
25 * | 25 * |
26 * Patrice Mandin | 26 * Patrice Mandin |
27 */ | 27 */ |
28 | 28 |
29 #include "SDL_thread.h" | 29 #include "SDL_thread.h" |
30 #include "SDL_systhread.h" | 30 #include "../SDL_systhread.h" |
31 | 31 |
32 #include <pth.h> | |
32 #include <signal.h> | 33 #include <signal.h> |
33 #include <pth.h> | |
34 | 34 |
35 /* List of signals to mask in the subthreads */ | 35 /* List of signals to mask in the subthreads */ |
36 static int sig_list[] = { | 36 static int sig_list[] = { |
37 SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGALRM, SIGTERM, SIGCHLD, SIGWINCH, | 37 SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGALRM, SIGTERM, SIGCHLD, SIGWINCH, |
38 SIGVTALRM, SIGPROF, 0 | 38 SIGVTALRM, SIGPROF, 0 |
89 return((Uint32)pth_self()); | 89 return((Uint32)pth_self()); |
90 } | 90 } |
91 | 91 |
92 void SDL_SYS_WaitThread(SDL_Thread *thread) | 92 void SDL_SYS_WaitThread(SDL_Thread *thread) |
93 { | 93 { |
94 pth_join(thread->handle, 0); | 94 pth_join(thread->handle, NULL); |
95 } | 95 } |
96 | 96 |
97 void SDL_SYS_KillThread(SDL_Thread *thread) | 97 void SDL_SYS_KillThread(SDL_Thread *thread) |
98 { | 98 { |
99 pth_cancel(thread->handle); | 99 pth_cancel(thread->handle); |