message: Parallel task code cleaning
diff: @@ -32,10 +32,7 @@ private:
  bool shutdown;
  size_t numberOfThreads;
  - void StartThreads() {
  - // should be called with mutex aquired
  -
  - auto threadProc = [this]() {
  + void ThreadProc() {
  for (;;) {
  packaged_task<void()> job;
  {
  @@ -59,11 +56,13 @@ private:
  }
  job();
  }
  - };
  + }
  + void StartThreads() {
  + // should be called with mutex aquired
  // start missing threads
  while(threads.size() < numberOfThreads)
  - threads.emplace_back(threadProc);
  + threads.emplace_back(bind(&ParallelOpThreadPool::ThreadProc, this));
  }
  public:
  @@ -129,7 +128,7 @@ ParallelTasks::ParallelTasks(int n) {
  }
  void ParallelTasks::Add(function<void()> task) {
  - tasks.push_back(s_parallelOpThreadPool.PostTask(task));
  + tasks.push_back(s_parallelOpThreadPool.PostTask(move(task)));
  }
  void ParallelTasks::Wait() {
  