2011-11-08 08:44:17 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2015-10-28 18:17:40 +01:00
|
|
|
#include "webrtc/system_wrappers/include/cpu_info.h"
|
2011-11-08 08:44:17 +00:00
|
|
|
|
2016-12-16 16:48:28 -08:00
|
|
|
#include "webrtc/base/systeminfo.h"
|
2011-11-08 08:44:17 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2013-04-09 09:06:11 +00:00
|
|
|
uint32_t CpuInfo::DetectNumberOfCores() {
|
2016-12-16 16:48:28 -08:00
|
|
|
return static_cast<uint32_t>(rtc::SystemInfo::GetMaxCpus());
|
2011-11-08 08:44:17 +00:00
|
|
|
}
|
|
|
|
|
|
2013-07-03 15:12:26 +00:00
|
|
|
} // namespace webrtc
|