diff --git a/native.vcxproj b/native.vcxproj index 11b90a4b8f..e9a230f557 100644 --- a/native.vcxproj +++ b/native.vcxproj @@ -296,7 +296,28 @@ - + + AnySuitable + true + Speed + AnySuitable + Speed + AnySuitable + true + Speed + false + AnySuitable + Speed + false + StreamingSIMDExtensions2 + Fast + StreamingSIMDExtensions2 + Fast + MaxSpeed + MaxSpeed + Default + Default + diff --git a/thread/threadpool.cpp b/thread/threadpool.cpp index dfbe73b14e..8da01601a9 100644 --- a/thread/threadpool.cpp +++ b/thread/threadpool.cpp @@ -3,7 +3,7 @@ ///////////////////////////// WorkerThread WorkerThread::WorkerThread() : active(true), started(false) { - thread = new std::thread([&]() { WorkFunc(); }); + thread = new std::thread(std::bind(&WorkerThread::WorkFunc, this)); doneMutex.lock(); while(!started) { }; }