Skip to content

Commit 14f2638

Browse files
authored
[O2-2559] Wrap run number with atomic (#275)
1 parent cde6533 commit 14f2638

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endif()
3131

3232
# Define project
3333
project(Monitoring
34-
VERSION 3.10.0
34+
VERSION 3.10.1
3535
DESCRIPTION "O2 Monitoring library"
3636
LANGUAGES CXX
3737
)

include/Monitoring/Backend.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#ifndef ALICEO2_MONITORING_CORE_BACKEND_H
1818
#define ALICEO2_MONITORING_CORE_BACKEND_H
1919

20+
#include <atomic>
2021
#include <chrono>
2122
#include <string>
2223
#include "Monitoring/Metric.h"
@@ -38,7 +39,7 @@ class Backend
3839
Verbosity verbosityLevel;
3940
protected:
4041
/// Run number
41-
uint32_t mRunNumber;
42+
std::atomic<uint32_t> mRunNumber;
4243

4344
public:
4445
/// Default constructor

0 commit comments

Comments
 (0)