Mercurial > sdl-ios-xcode
comparison src/thread/SDL_thread_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 | e8f63b28947d |
children | 47d923feedb0 |
comparison
equal
deleted
inserted
replaced
3577:72024425b437 | 3578:0d1b16ee0bca |
---|---|
48 #include "../SDL_error_c.h" | 48 #include "../SDL_error_c.h" |
49 | 49 |
50 /* This is the system-independent thread info structure */ | 50 /* This is the system-independent thread info structure */ |
51 struct SDL_Thread | 51 struct SDL_Thread |
52 { | 52 { |
53 Uint32 threadid; | 53 SDL_threadID threadid; |
54 SYS_ThreadHandle handle; | 54 SYS_ThreadHandle handle; |
55 int status; | 55 int status; |
56 SDL_error errbuf; | 56 SDL_error errbuf; |
57 void *data; | 57 void *data; |
58 }; | 58 }; |