diff --git a/Modules/CPU/readers.swift b/Modules/CPU/readers.swift index 8851b571..f4b10732 100644 --- a/Modules/CPU/readers.swift +++ b/Modules/CPU/readers.swift @@ -303,7 +303,13 @@ public class FrequencyReader: Reader { private var prev: (samples: CFDictionary, time: TimeInterval)? = nil private let measurementCount: Int = 4 - private var isReading: Bool = false + private let isReadingQueue = DispatchQueue(label: "com.example.isReadingQueue") + + private var _isReading: Bool = false + private var isReading: Bool { + get { self.isReadingQueue.sync { self._isReading } } + set { self.isReadingQueue.sync { self._isReading = newValue } } + } private struct IOSample { let group: String diff --git a/Stats.xcodeproj/project.pbxproj b/Stats.xcodeproj/project.pbxproj index fdd238fd..be90b7ab 100644 --- a/Stats.xcodeproj/project.pbxproj +++ b/Stats.xcodeproj/project.pbxproj @@ -2867,7 +2867,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 2.11.39; + MARKETING_VERSION = 2.11.40; OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -2904,7 +2904,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 2.11.39; + MARKETING_VERSION = 2.11.40; OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist index 355427be..3cd0d66b 100755 --- a/Stats/Supporting Files/Info.plist +++ b/Stats/Supporting Files/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 694 + 696 Description Simple macOS system monitor in your menu bar LSApplicationCategoryType diff --git a/Widgets/Supporting Files/Info.plist b/Widgets/Supporting Files/Info.plist index 3978a5f5..f1c9e4a6 100644 --- a/Widgets/Supporting Files/Info.plist +++ b/Widgets/Supporting Files/Info.plist @@ -11,9 +11,9 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleShortVersionString - 2.11.39 + 2.11.40 CFBundleVersion - 694 + 696 NSExtension NSExtensionPointIdentifier