Fix darwin build

This commit is contained in:
Alexander Gololobov 2024-11-12 14:56:37 +01:00 committed by GitHub
parent cba6267431
commit dde5633c6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,7 +112,12 @@ private:
/// Protects saved values.
mutable SharedMutex values_mutex;
/// Values store the result of the last update prepared for reading.
#ifdef OS_LINUX
AsynchronousMetricValues values TSA_GUARDED_BY(values_mutex);
#else
/// When SharedMutex == std::shared_mutex it may not be annotated with the 'capability'.
AsynchronousMetricValues values;
#endif
#if defined(OS_LINUX) || defined(OS_FREEBSD)
MemoryStatisticsOS memory_stat TSA_GUARDED_BY(data_mutex);