Include atomic in env_test

This commit is contained in:
Igor Canadi 2014-10-27 15:41:05 -07:00
parent c1c68bce43
commit b680033e63
2 changed files with 2 additions and 1 deletions

View File

@ -1533,7 +1533,7 @@ class Benchmark {
void AcquireLoad(ThreadState* thread) {
int dummy;
std::atomic<void*> ap;
std::atomic<void*> ap(&dummy);
int count = 0;
void *ptr = nullptr;
thread->stats.AddMessage("(each op is 1000 loads)");

View File

@ -11,6 +11,7 @@
#include <iostream>
#include <unordered_set>
#include <atomic>
#ifdef OS_LINUX
#include <sys/stat.h>