Mercurial > sdl-ios-xcode
comparison src/thread/win32/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 |
---|---|
149 SDL_SYS_SetupThread(void) | 149 SDL_SYS_SetupThread(void) |
150 { | 150 { |
151 return; | 151 return; |
152 } | 152 } |
153 | 153 |
154 Uint32 | 154 SDL_threadID |
155 SDL_ThreadID(void) | 155 SDL_ThreadID(void) |
156 { | 156 { |
157 return ((Uint32) GetCurrentThreadId()); | 157 return ((SDL_threadID) GetCurrentThreadId()); |
158 } | 158 } |
159 | 159 |
160 void | 160 void |
161 SDL_SYS_WaitThread(SDL_Thread * thread) | 161 SDL_SYS_WaitThread(SDL_Thread * thread) |
162 { | 162 { |