Skip to content

Commit

Permalink
[O2-2559] Wrap run number with atomic (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
awegrzyn authored Nov 24, 2021
1 parent cde6533 commit 14f2638
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ endif()

# Define project
project(Monitoring
VERSION 3.10.0
VERSION 3.10.1
DESCRIPTION "O2 Monitoring library"
LANGUAGES CXX
)
Expand Down
3 changes: 2 additions & 1 deletion include/Monitoring/Backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef ALICEO2_MONITORING_CORE_BACKEND_H
#define ALICEO2_MONITORING_CORE_BACKEND_H

#include <atomic>
#include <chrono>
#include <string>
#include "Monitoring/Metric.h"
Expand All @@ -38,7 +39,7 @@ class Backend
Verbosity verbosityLevel;
protected:
/// Run number
uint32_t mRunNumber;
std::atomic<uint32_t> mRunNumber;

public:
/// Default constructor
Expand Down

0 comments on commit 14f2638

Please sign in to comment.