comparison src/thread/beos/SDL_systhread.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
82 { 82 {
83 /* Mask asynchronous signals for this thread */ 83 /* Mask asynchronous signals for this thread */
84 SDL_MaskSignals(NULL); 84 SDL_MaskSignals(NULL);
85 } 85 }
86 86
87 Uint32 87 SDL_threadID
88 SDL_ThreadID(void) 88 SDL_ThreadID(void)
89 { 89 {
90 return ((Uint32) find_thread(NULL)); 90 return ((SDL_threadID) find_thread(NULL));
91 } 91 }
92 92
93 void 93 void
94 SDL_SYS_WaitThread(SDL_Thread * thread) 94 SDL_SYS_WaitThread(SDL_Thread * thread)
95 { 95 {