Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 712 vs 713 for /trunk/Source Code/Platform/Video/GFXState.cpp

Diff revisions: vs.
  @@ -24,14 +24,14 @@
24 24 "GPUState::startLoaderThread error: double init detected!");
25 25
26 26 if (Config::USE_GPU_THREADED_LOADING) {
27 - _loaderThread.reset(new std::thread(loadingFunction));
27 + _loaderThread = MemoryManager_NEW std::thread(loadingFunction);
28 28 }
29 29
30 30 return true;
31 31 }
32 32
33 33 bool GPUState::stopLoaderThread() {
34 - if (_loaderThread.get()) {
34 + if (_loaderThread != nullptr) {
35 35 if (Config::USE_GPU_THREADED_LOADING) {
36 36 DIVIDE_ASSERT(_loaderThread != nullptr,
37 37 "GPUState::stopLoaderThread error: stop called without "
  @@ -46,7 +46,7 @@
46 46 std::this_thread::sleep_for(std::chrono::milliseconds(10));
47 47 }
48 48 _loaderThread->join();
49 - _loaderThread.reset(nullptr);
49 + MemoryManager::DELETE(_loaderThread);
50 50 }
51 51 return true;
52 52 }