From c75510b304c2514447b151cc6b9bd04d688bd12c Mon Sep 17 00:00:00 2001 From: Peter Thoman Date: Wed, 1 May 2013 16:06:54 +0200 Subject: [PATCH] Eliminated lambda, undo debug compialtion changes --- native.vcxproj | 23 ++++++++++++++++++++++- thread/threadpool.cpp | 2 +- 2 files changed, 23 insertions(+), 2 deletions(-) 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) { }; }