kodi
CPUInfoOsx.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "utils/Temperature.h"
12 
13 #include "platform/posix/CPUInfoPosix.h"
14 
16 
17 class CCPUInfoOsx : public CCPUInfoPosix
18 {
19 public:
20  CCPUInfoOsx();
21  ~CCPUInfoOsx() = default;
22 
23  int GetUsedPercentage() override;
24  float GetCPUFrequency() override;
25  bool GetTemperature(CTemperature& temperature) override;
26 
27 private:
28  std::unique_ptr<CPosixResourceCounter> m_resourceCounter;
29 };
Definition: PosixResourceCounter.h:17
Definition: CPUInfoOsx.h:17
Definition: Temperature.h:15
Definition: CPUInfoPosix.h:13