From b680033e63b4a8c1f3bf4b3c58e986e9f855a1e5 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Mon, 27 Oct 2014 15:41:05 -0700 Subject: [PATCH] Include atomic in env_test --- db/db_bench.cc | 2 +- util/env_test.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/db/db_bench.cc b/db/db_bench.cc index 1a379e948..fcc930e67 100644 --- a/db/db_bench.cc +++ b/db/db_bench.cc @@ -1533,7 +1533,7 @@ class Benchmark { void AcquireLoad(ThreadState* thread) { int dummy; - std::atomic ap; + std::atomic ap(&dummy); int count = 0; void *ptr = nullptr; thread->stats.AddMessage("(each op is 1000 loads)"); diff --git a/util/env_test.cc b/util/env_test.cc index be542e9af..3d7a9a4db 100644 --- a/util/env_test.cc +++ b/util/env_test.cc @@ -11,6 +11,7 @@ #include #include +#include #ifdef OS_LINUX #include