blob: cf1025f8604d207e0710c2130cc3cbcae776ca9f [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
11#ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_CPU_INFO_H_
12#define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_CPU_INFO_H_
13
14#include "typedefs.h"
15
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() {}
pbos@webrtc.org046deb92013-04-09 09:06:11 +000024 static uint32_t number_of_cores_;
henrikg@webrtc.orgc58ef082011-11-08 08:44:17 +000025};
phoglund@webrtc.orgb15d2852012-11-21 08:02:57 +000026
henrikg@webrtc.orgc58ef082011-11-08 08:44:17 +000027} // namespace webrtc
phoglund@webrtc.orgb15d2852012-11-21 08:02:57 +000028
henrikg@webrtc.orgc58ef082011-11-08 08:44:17 +000029#endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_CPU_INFO_H_