From 402e85cc1764b1b348c814e7839bfdbb12e074a3 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 23 Feb 2016 11:08:20 +0100 Subject: [PATCH] bugfix due to capturing of thread index by reference --- libsrc/general/parthreads.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsrc/general/parthreads.hpp b/libsrc/general/parthreads.hpp index 9b676b10..4a7a9d66 100644 --- a/libsrc/general/parthreads.hpp +++ b/libsrc/general/parthreads.hpp @@ -195,10 +195,10 @@ void ParallelFor( int first, int next, const TFunc & f ) thread * threads = new thread[nthreads]; for (int i=0; i