Mercurial > sdl-ios-xcode
comparison src/thread/SDL_thread.c @ 4235:88aa213ffc7b SDL-1.2
Possibly fixed bug #601, definitely fixed a potential issue with threads
stopping and starting in rapid succession.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 23 Sep 2009 06:35:28 +0000 |
parents | a1b03ba2fcd0 |
children |
comparison
equal
deleted
inserted
replaced
4234:9cb722ce769c | 4235:88aa213ffc7b |
---|---|
132 SDL_numthreads, SDL_maxthreads); | 132 SDL_numthreads, SDL_maxthreads); |
133 #endif | 133 #endif |
134 } | 134 } |
135 SDL_mutexV(thread_lock); | 135 SDL_mutexV(thread_lock); |
136 | 136 |
137 #if 0 /* There could be memory corruption if another thread is starting */ | |
137 if ( SDL_Threads == NULL ) { | 138 if ( SDL_Threads == NULL ) { |
138 SDL_ThreadsQuit(); | 139 SDL_ThreadsQuit(); |
139 } | 140 } |
141 #endif | |
140 } | 142 } |
141 | 143 |
142 /* The default (non-thread-safe) global error variable */ | 144 /* The default (non-thread-safe) global error variable */ |
143 static SDL_error SDL_global_error; | 145 static SDL_error SDL_global_error; |
144 | 146 |