Крипто-анализ

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

jonasschnelli commented on this pull request.

> +class CAppNapInhibitorInt +{ +public: + id activityId; +}; + +CAppNapInhibitor::CAppNapInhibitor(const char* strReason) : priv(new CAppNapInhibitorInt) +{ +#if defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1090 + const NSActivityOptions activityOptions = + (NSActivityUserInitiatedAllowingIdleSystemSleep | + NSActivityLatencyCritical) & + ~(NSActivitySuddenTerminationDisabled | + NSActivityAutomaticTerminationDisabled); + + if ([[NSProcessInfo processInfo] respondsToSelector:@selector(beginActivityWithOptions:reason:)])
nit: code styling, use brackets {}

Добавить комментарий