Drake says we actually wanna doing this.

This commit is contained in:
Lirusaito
2016-05-10 21:08:20 -04:00
parent f89a5aaa27
commit c161a47970

View File

@@ -31,7 +31,7 @@
#include "llmatrix4a.h"
#include <boost/bind.hpp>
#include <thread>
#include "apr_time.h"
std::list<LLModelLoader*> LLModelLoader::sActiveLoaderList;
@@ -459,7 +459,7 @@ void LLModelLoader::loadModelCallback()
while (!isStopped())
{ //wait until this thread is stopped before deleting self
std::this_thread::sleep_for(std::chrono::microseconds(100));
apr_sleep(100);
}
//double check if "this" is valid before deleting it, in case it is aborted during running.