Drake says we actually wanna doing this.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user