[bitcoin/bitcoin] macOS: Disable AppNap (#12783)

luke-jr commented on this pull request.

> +#include
+#include
+#include
+
+class CAppNapInhibitor::Private
+{
+public:
+ NSObject* activityId;
+};
+
+CAppNapInhibitor::CAppNapInhibitor(const char* strReason) : d(new Private)
+{
+#if defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1090
+ const NSActivityOptions activityOptions =
+ (NSActivityUserInitiatedAllowingIdleSystemSleep |
+ NSActivityLatencyCritical) &

Why latency critical?

This post was last modified on July 7, 2018, 1:36 pm