Skip to content

Commit 8c32195

Browse files
Remove volatile from CondCore/Utilities
1 parent ab77a26 commit 8c32195

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CondCore/Utilities/bin/conddb_test_gt_perf.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <iostream>
88
#include <fstream>
99

10+
#include <atomic>
1011
#include <chrono>
1112
#include <memory>
1213

@@ -325,7 +326,7 @@ cond::TestGTPerf::TestGTPerf() : Utilities("conddb_test_gt_load") {
325326
// thread helpers
326327

327328
// global counter for dummy thread measurements:
328-
volatile int fooGlobal = 0;
329+
std::atomic<int> fooGlobal = 0;
329330

330331
class FetchWorker {
331332
private:

0 commit comments

Comments
 (0)