Make CodeProbeImpl::_hitCount atomic
This commit is contained in:
parent
367d43a8d1
commit
20915b749f
|
@ -281,7 +281,7 @@ struct CodeProbeImpl : ICodeProbe {
|
|||
private:
|
||||
CodeProbeImpl() { registerProbe(*this); }
|
||||
inline static CodeProbeImpl _instance;
|
||||
unsigned _hitCount = 0;
|
||||
std::atomic<unsigned> _hitCount = 0;
|
||||
Annotations annotations;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue