blob: c4cf2da8d375c4adca70cde3f118cf83fbfb4fd9 [file] [log] [blame]
henrikg@webrtc.orgc58ef082011-11-08 08:44:17 +00001/*
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 Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef SYSTEM_WRAPPERS_INCLUDE_CPU_INFO_H_
12#define SYSTEM_WRAPPERS_INCLUDE_CPU_INFO_H_
henrikg@webrtc.orgc58ef082011-11-08 08:44:17 +000013
Mirko Bonadei71207422017-09-15 13:58:09 +020014#include "typedefs.h" // NOLINT(build/include)
henrikg@webrtc.orgc58ef082011-11-08 08:44:17 +000015
16namespace webrtc {
henrikg@webrtc.orgc58ef082011-11-08 08:44:17 +000017
phoglund@webrtc.orgb15d2852012-11-21 08:02:57 +000018class CpuInfo {
19 public:
pbos@webrtc.org046deb92013-04-09 09:06:11 +000020 static uint32_t DetectNumberOfCores();
phoglund@webrtc.orgb15d2852012-11-21 08:02:57 +000021
22 private:
23 CpuInfo() {}
henrikg@webrtc.orgc58ef082011-11-08 08:44:17 +000024};
phoglund@webrtc.orgb15d2852012-11-21 08:02:57 +000025
pbos@webrtc.orgd900e8b2013-07-03 15:12:26 +000026} // namespace webrtc
phoglund@webrtc.orgb15d2852012-11-21 08:02:57 +000027
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020028#endif // SYSTEM_WRAPPERS_INCLUDE_CPU_INFO_H_