From 6a5717dc74d3ce0ed8b581d0dd255ffbf50ffa32 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 11 May 2016 10:04:41 -0700 Subject: Explicitely initialize all the atomic variables. --- unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h') diff --git a/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h b/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h index f7e73aabe..13e6aac27 100644 --- a/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h +++ b/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h @@ -25,9 +25,9 @@ class NonBlockingThreadPoolTempl : public Eigen::ThreadPoolInterface { queues_(num_threads), coprimes_(num_threads), waiters_(num_threads), - blocked_(), - spinning_(), - done_(), + blocked_(0), + spinning_(0), + done_(false), ec_(waiters_) { // Calculate coprimes of num_threads. // Coprimes are used for a random walk over all threads in Steal -- cgit v1.2.3