Mercurial > sdl-ios-xcode
comparison src/thread/pthread/SDL_systhread.c @ 5105:797b37c0c046
Nobody is maintaining RISC OS code, so I'm removing it for now.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 27 Jan 2011 00:06:36 -0800 |
parents | f7b03b6838cb |
children | b530ef003506 |
comparison
equal
deleted
inserted
replaced
5104:42a7591530d5 | 5105:797b37c0c046 |
---|---|
32 static const int sig_list[] = { | 32 static const int sig_list[] = { |
33 SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGALRM, SIGTERM, SIGCHLD, SIGWINCH, | 33 SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGALRM, SIGTERM, SIGCHLD, SIGWINCH, |
34 SIGVTALRM, SIGPROF, 0 | 34 SIGVTALRM, SIGPROF, 0 |
35 }; | 35 }; |
36 | 36 |
37 #ifdef __RISCOS__ | |
38 /* RISC OS needs to know the main thread for | |
39 * it's timer and event processing. */ | |
40 int riscos_using_threads = 0; | |
41 SDL_threadID riscos_main_thread = 0; /* Thread running events */ | |
42 #endif | |
43 | |
44 | |
45 static void * | 37 static void * |
46 RunThread(void *data) | 38 RunThread(void *data) |
47 { | 39 { |
48 SDL_RunThread(data); | 40 SDL_RunThread(data); |
49 pthread_exit((void *) 0); | 41 pthread_exit((void *) 0); |
65 /* Create the thread and go! */ | 57 /* Create the thread and go! */ |
66 if (pthread_create(&thread->handle, &type, RunThread, args) != 0) { | 58 if (pthread_create(&thread->handle, &type, RunThread, args) != 0) { |
67 SDL_SetError("Not enough resources to create thread"); | 59 SDL_SetError("Not enough resources to create thread"); |
68 return (-1); | 60 return (-1); |
69 } | 61 } |
70 #ifdef __RISCOS__ | |
71 if (riscos_using_threads == 0) { | |
72 riscos_using_threads = 1; | |
73 riscos_main_thread = SDL_ThreadID(); | |
74 } | |
75 #endif | |
76 | 62 |
77 return (0); | 63 return (0); |
78 } | 64 } |
79 | 65 |
80 void | 66 void |