blob: 3c00d33ed371a065d37cb28412f9d3e32e890420 [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
kjellanderd56d68c2015-11-02 02:12:41 -080011#ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_CPU_INFO_H_
12#define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_CPU_INFO_H_
henrikg@webrtc.orgc58ef082011-11-08 08:44:17 +000013
pbos@webrtc.orgacaf3a12013-05-27 15:07:45 +000014#include "webrtc/typedefs.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
kjellanderd56d68c2015-11-02 02:12:41 -080028#endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_CPU_INFO_H_