comparison src/audio/SDL_sysaudio.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
106 /* A semaphore for locking the mixing buffers */ 106 /* A semaphore for locking the mixing buffers */
107 SDL_mutex *mixer_lock; 107 SDL_mutex *mixer_lock;
108 108
109 /* A thread to feed the audio device */ 109 /* A thread to feed the audio device */
110 SDL_Thread *thread; 110 SDL_Thread *thread;
111 Uint32 threadid; 111 SDL_threadID threadid;
112 112
113 /* * * */ 113 /* * * */
114 /* Data private to this driver */ 114 /* Data private to this driver */
115 struct SDL_PrivateAudioData *hidden; 115 struct SDL_PrivateAudioData *hidden;
116 }; 116 };