mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-02-16 10:41:01 +00:00
make mutex mutable
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user