We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab77a26 commit 8c32195Copy full SHA for 8c32195
CondCore/Utilities/bin/conddb_test_gt_perf.cpp
@@ -7,6 +7,7 @@
7
#include <iostream>
8
#include <fstream>
9
10
+#include <atomic>
11
#include <chrono>
12
#include <memory>
13
@@ -325,7 +326,7 @@ cond::TestGTPerf::TestGTPerf() : Utilities("conddb_test_gt_load") {
325
326
// thread helpers
327
328
// global counter for dummy thread measurements:
-volatile int fooGlobal = 0;
329
+std::atomic<int> fooGlobal = 0;
330
331
class FetchWorker {
332
private:
0 commit comments