aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/cxx11_runqueue.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-15 11:27:52 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-15 11:27:52 -0700
commit40c9923a8aa84bb273e003a92e7cbd644bdecc4c (patch)
treea5dcb2f26044e5669e4ad6fa6e13f7c1cd1cf8ba /unsupported/test/cxx11_runqueue.cpp
parent1d2343062805edb86113e2aef5ebcbe5030a57a5 (diff)
Fixed compilation errors with msvc
Diffstat (limited to 'unsupported/test/cxx11_runqueue.cpp')
-rw-r--r--unsupported/test/cxx11_runqueue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/unsupported/test/cxx11_runqueue.cpp b/unsupported/test/cxx11_runqueue.cpp
index f1217a01b..b1e2dbd6d 100644
--- a/unsupported/test/cxx11_runqueue.cpp
+++ b/unsupported/test/cxx11_runqueue.cpp
@@ -9,6 +9,7 @@
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#define EIGEN_USE_THREADS
+#include <cstdlib>
#include "main.h"
#include <Eigen/CXX11/ThreadPool>
@@ -138,7 +139,7 @@ void test_empty_runqueue()
// PopBack. Ensure that we don't crash, deadlock, and all sanity checks pass.
void test_stress_runqueue()
{
- const int kEvents = 1 << 18;
+ static const int kEvents = 1 << 18;
RunQueue<int, 8> q;
std::atomic<int> total(0);
std::vector<std::unique_ptr<std::thread>> threads;