Mercurial > sdl-ios-xcode
comparison src/thread/SDL_thread.c @ 3300:34a4a01da79c
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:37:27 +0000 |
parents | 99210400e8b9 |
children | 0d1b16ee0bca |
comparison
equal
deleted
inserted
replaced
3299:975fd903466b | 3300:34a4a01da79c |
---|---|
138 SDL_numthreads, SDL_maxthreads); | 138 SDL_numthreads, SDL_maxthreads); |
139 #endif | 139 #endif |
140 } | 140 } |
141 SDL_mutexV(thread_lock); | 141 SDL_mutexV(thread_lock); |
142 | 142 |
143 #if 0 /* There could be memory corruption if another thread is starting */ | |
143 if (SDL_Threads == NULL) { | 144 if (SDL_Threads == NULL) { |
144 SDL_ThreadsQuit(); | 145 SDL_ThreadsQuit(); |
145 } | 146 } |
147 #endif | |
146 } | 148 } |
147 | 149 |
148 /* The default (non-thread-safe) global error variable */ | 150 /* The default (non-thread-safe) global error variable */ |
149 static SDL_error SDL_global_error; | 151 static SDL_error SDL_global_error; |
150 | 152 |