comparison src/events/SDL_events.c @ 1978:542c78b6fb12

MacOS Classic is no longer supported.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 10 Aug 2006 14:54:23 +0000
parents c121d94672cb
children 047245361002
comparison
equal deleted inserted replaced
1977:754847f19490 1978:542c78b6fb12
155 155
156 /* Create the lock and set ourselves active */ 156 /* Create the lock and set ourselves active */
157 #if !SDL_THREADS_DISABLED 157 #if !SDL_THREADS_DISABLED
158 SDL_EventQ.lock = SDL_CreateMutex(); 158 SDL_EventQ.lock = SDL_CreateMutex();
159 if (SDL_EventQ.lock == NULL) { 159 if (SDL_EventQ.lock == NULL) {
160 #ifdef __MACOS__ /* MacOS classic you can't multithread, so no lock needed */
161 ;
162 #else
163 return (-1); 160 return (-1);
164 #endif
165 } 161 }
166 #endif /* !SDL_THREADS_DISABLED */ 162 #endif /* !SDL_THREADS_DISABLED */
167 SDL_EventQ.active = 1; 163 SDL_EventQ.active = 1;
168 164
169 if ((flags & SDL_INIT_EVENTTHREAD) == SDL_INIT_EVENTTHREAD) { 165 if ((flags & SDL_INIT_EVENTTHREAD) == SDL_INIT_EVENTTHREAD) {