henrikg@webrtc.org | c58ef08 | 2011-11-08 08:44:17 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 11 | #ifndef SYSTEM_WRAPPERS_INCLUDE_CPU_INFO_H_ |
| 12 | #define SYSTEM_WRAPPERS_INCLUDE_CPU_INFO_H_ |
henrikg@webrtc.org | c58ef08 | 2011-11-08 08:44:17 +0000 | [diff] [blame] | 13 | |
Mirko Bonadei | 7120742 | 2017-09-15 13:58:09 +0200 | [diff] [blame^] | 14 | #include "typedefs.h" // NOLINT(build/include) |
henrikg@webrtc.org | c58ef08 | 2011-11-08 08:44:17 +0000 | [diff] [blame] | 15 | |
| 16 | namespace webrtc { |
henrikg@webrtc.org | c58ef08 | 2011-11-08 08:44:17 +0000 | [diff] [blame] | 17 | |
phoglund@webrtc.org | b15d285 | 2012-11-21 08:02:57 +0000 | [diff] [blame] | 18 | class CpuInfo { |
| 19 | public: |
pbos@webrtc.org | 046deb9 | 2013-04-09 09:06:11 +0000 | [diff] [blame] | 20 | static uint32_t DetectNumberOfCores(); |
phoglund@webrtc.org | b15d285 | 2012-11-21 08:02:57 +0000 | [diff] [blame] | 21 | |
| 22 | private: |
| 23 | CpuInfo() {} |
henrikg@webrtc.org | c58ef08 | 2011-11-08 08:44:17 +0000 | [diff] [blame] | 24 | }; |
phoglund@webrtc.org | b15d285 | 2012-11-21 08:02:57 +0000 | [diff] [blame] | 25 | |
pbos@webrtc.org | d900e8b | 2013-07-03 15:12:26 +0000 | [diff] [blame] | 26 | } // namespace webrtc |
phoglund@webrtc.org | b15d285 | 2012-11-21 08:02:57 +0000 | [diff] [blame] | 27 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 28 | #endif // SYSTEM_WRAPPERS_INCLUDE_CPU_INFO_H_ |