mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 23:35:41 +00:00
make mutex mutable
This commit is contained in:
parent
c85e026c2d
commit
7e1f86478d
@ -41,7 +41,7 @@ struct UnitExecutionTime {
|
||||
size_t measurement_count() const;
|
||||
|
||||
private:
|
||||
std::mutex m_mtx {};
|
||||
mutable std::mutex m_mtx {};
|
||||
size_t m_total_calls {};
|
||||
double m_sum {};
|
||||
// sum of measurements squared (for running stdev)
|
||||
|
Loading…
x
Reference in New Issue
Block a user