mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 20:03:58 +02:00
bugfix for pure virtual error on garbage collector thread
This commit is contained in:
@@ -197,7 +197,11 @@ void Thread::queueAutoCleanThread() {
|
||||
//printf("In Thread::shutdownThreads Line: %d\n",__LINE__);
|
||||
cleanupThread.reset(new ThreadGarbageCollector());
|
||||
cleanupThread->start();
|
||||
sleep(0);
|
||||
for(time_t elapsed = time(NULL);
|
||||
cleanupThread->getRunningStatus() == false &&
|
||||
difftime(time(NULL),elapsed) < 6;) {
|
||||
sleep(5);
|
||||
}
|
||||
}
|
||||
cleanupThread->addThread(this);
|
||||
//printf("In Thread::shutdownThreads Line: %d\n",__LINE__);
|
||||
|
Reference in New Issue
Block a user