diff src/events/SDL_events.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 a67a961e2171
children 57823d017f02
line wrap: on
line diff
--- a/src/events/SDL_events.c	Wed Dec 16 03:02:31 2009 +0000
+++ b/src/events/SDL_events.c	Wed Dec 16 04:48:11 2009 +0000
@@ -62,7 +62,7 @@
 
 /* Thread functions */
 static SDL_Thread *SDL_EventThread = NULL;      /* Thread handle */
-static Uint32 event_thread;     /* The event thread id */
+static SDL_threadID event_thread;     /* The event thread id */
 
 void
 SDL_Lock_EventThread(void)
@@ -183,7 +183,7 @@
     }
 }
 
-Uint32
+SDL_threadID
 SDL_EventThreadID(void)
 {
     return (event_thread);