Skip to content

Commit 3ed2913

Browse files
authored
Merge pull request #45104 from francescobrivio/alca_remove_volatile
[CPP20] Remove volatile from CondCore/Utilities
2 parents 9c25f67 + 8c32195 commit 3ed2913

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)