提交 b680033e 编写于 作者: I Igor Canadi

Include atomic in env_test

上级 c1c68bce
......@@ -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)");
......
......@@ -11,6 +11,7 @@
#include <iostream>
#include <unordered_set>
#include <atomic>
#ifdef OS_LINUX
#include <sys/stat.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册