mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-25 13:30:43 +00:00
make mutex mutable
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -41,7 +41,7 @@ struct UnitExecutionTime {
|
|||||||
size_t measurement_count() const;
|
size_t measurement_count() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::mutex m_mtx {};
|
mutable std::mutex m_mtx {};
|
||||||
size_t m_total_calls {};
|
size_t m_total_calls {};
|
||||||
double m_sum {};
|
double m_sum {};
|
||||||
// sum of measurements squared (for running stdev)
|
// sum of measurements squared (for running stdev)
|
||||||
|
|||||||
Reference in new issue
Block a user