Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
macos_appnap.mm
Go to the documentation of this file.
1// Copyright (c) 2011-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#include "macos_appnap.h"
6
7#include <AvailabilityMacros.h>
8#include <Foundation/NSProcessInfo.h>
9#include <Foundation/Foundation.h>
10
12{
13public:
15 {
16 if(activityId)
18 }
19
39
41 {
42 if(activityId)
43 {
48
49 [activityId release];
51 }
52 }
53 }
54
55private:
57};
58
60
62
64{
65 impl->disableAppNap();
66}
67
69{
70 impl->enableAppNap();
71}
std::unique_ptr< CAppNapImpl > impl
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:73