Mercurial > sdl-ios-xcode
comparison src/timer/riscos/SDL_systimer.c @ 3578:0d1b16ee0bca
Fixed bug #741
The thread ID is an unsigned long so it can hold pthread_t so people can do naughty things with it.
I'm going to be adding additional useful thread API functions, but this should prevent crashes in people's existing code on 64-bit architectures.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 16 Dec 2009 04:48:11 +0000 |
parents | 99210400e8b9 |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3577:72024425b437 | 3578:0d1b16ee0bca |
---|---|
38 static Uint32 timerStart; | 38 static Uint32 timerStart; |
39 /* Timer running function */ | 39 /* Timer running function */ |
40 void RISCOS_CheckTimer(); | 40 void RISCOS_CheckTimer(); |
41 #else | 41 #else |
42 #include <pthread.h> | 42 #include <pthread.h> |
43 extern Uint32 riscos_main_thread; | 43 extern SDL_threadID riscos_main_thread; |
44 extern int riscos_using_threads; | 44 extern int riscos_using_threads; |
45 extern Uint32 SDL_ThreadID(); | 45 extern SDL_threadID SDL_ThreadID(); |
46 extern Uint32 SDL_EventThreadID(void); | 46 extern SDL_threadID SDL_EventThreadID(void); |
47 #endif | 47 #endif |
48 | 48 |
49 | 49 |
50 extern void RISCOS_BackgroundTasks(void); | 50 extern void RISCOS_BackgroundTasks(void); |
51 | 51 |