Mercurial > sdl-ios-xcode
diff src/events/SDL_events_c.h @ 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 |
line wrap: on
line diff
--- a/src/events/SDL_events_c.h Wed Dec 16 03:02:31 2009 +0000 +++ b/src/events/SDL_events_c.h Wed Dec 16 04:48:11 2009 +0000 @@ -23,6 +23,7 @@ /* Useful functions and variables from SDL_events.c */ #include "SDL_events.h" +#include "SDL_thread.h" #include "SDL_mouse_c.h" #include "SDL_keyboard_c.h" #include "SDL_windowevents_c.h" @@ -34,7 +35,7 @@ extern void SDL_Lock_EventThread(void); extern void SDL_Unlock_EventThread(void); -extern Uint32 SDL_EventThreadID(void); +extern SDL_threadID SDL_EventThreadID(void); extern int SDL_SendSysWMEvent(SDL_SysWMmsg * message);