mirror of
https://github.com/glest/glest-source.git
synced 2025-10-03 19:01:53 +02:00
- more thread cleanup
This commit is contained in:
@@ -2119,8 +2119,9 @@ int glestMain(int argc, char** argv) {
|
||||
|
||||
if(preCacheThread.get() != NULL) {
|
||||
time_t elapsed = time(NULL);
|
||||
for(;preCacheThread->shutdownAndWait() == false &&
|
||||
difftime(time(NULL),elapsed) <= 5;) {
|
||||
preCacheThread->signalQuit();
|
||||
for(;preCacheThread->canShutdown(false) == false &&
|
||||
difftime(time(NULL),elapsed) <= 15;) {
|
||||
sleep(50);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user