comparison 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
comparison
equal deleted inserted replaced
3577:72024425b437 3578:0d1b16ee0bca
21 */ 21 */
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 /* Useful functions and variables from SDL_events.c */ 24 /* Useful functions and variables from SDL_events.c */
25 #include "SDL_events.h" 25 #include "SDL_events.h"
26 #include "SDL_thread.h"
26 #include "SDL_mouse_c.h" 27 #include "SDL_mouse_c.h"
27 #include "SDL_keyboard_c.h" 28 #include "SDL_keyboard_c.h"
28 #include "SDL_windowevents_c.h" 29 #include "SDL_windowevents_c.h"
29 30
30 /* Start and stop the event processing loop */ 31 /* Start and stop the event processing loop */
32 extern void SDL_StopEventLoop(void); 33 extern void SDL_StopEventLoop(void);
33 extern void SDL_QuitInterrupt(void); 34 extern void SDL_QuitInterrupt(void);
34 35
35 extern void SDL_Lock_EventThread(void); 36 extern void SDL_Lock_EventThread(void);
36 extern void SDL_Unlock_EventThread(void); 37 extern void SDL_Unlock_EventThread(void);
37 extern Uint32 SDL_EventThreadID(void); 38 extern SDL_threadID SDL_EventThreadID(void);
38 39
39 extern int SDL_SendSysWMEvent(SDL_SysWMmsg * message); 40 extern int SDL_SendSysWMEvent(SDL_SysWMmsg * message);
40 41
41 extern int SDL_QuitInit(void); 42 extern int SDL_QuitInit(void);
42 extern int SDL_SendQuit(void); 43 extern int SDL_SendQuit(void);