blob: ab546c721413b4b37b0228f09329edba0a608f5a [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
Niels Möllera12c42a2018-07-25 16:05:48 +020014#include <stdint.h>
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
Karl Wiberg79eb1d92017-11-08 12:26:07 +010028#endif // SYSTEM_WRAPPERS_INCLUDE_CPU_INFO_H_