mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 16:30:56 +00:00
Include atomic in env_test
This commit is contained in:
parent
c1c68bce43
commit
b680033e63
|
@ -1533,7 +1533,7 @@ class Benchmark {
|
||||||
|
|
||||||
void AcquireLoad(ThreadState* thread) {
|
void AcquireLoad(ThreadState* thread) {
|
||||||
int dummy;
|
int dummy;
|
||||||
std::atomic<void*> ap;
|
std::atomic<void*> ap(&dummy);
|
||||||
int count = 0;
|
int count = 0;
|
||||||
void *ptr = nullptr;
|
void *ptr = nullptr;
|
||||||
thread->stats.AddMessage("(each op is 1000 loads)");
|
thread->stats.AddMessage("(each op is 1000 loads)");
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
#include <atomic>
|
||||||
|
|
||||||
#ifdef OS_LINUX
|
#ifdef OS_LINUX
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
Loading…
Reference in a new issue