diff options
Diffstat (limited to 'base/sys_info.h')
-rw-r--r-- | base/sys_info.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/base/sys_info.h b/base/sys_info.h new file mode 100644 index 0000000..65949a0 --- /dev/null +++ b/base/sys_info.h @@ -0,0 +1,18 @@ +// Copyright (c) 2008 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef BASE_SYS_INFO_H_ +#define BASE_SYS_INFO_H_ + +namespace base { + +class SysInfo { + public: + // Return the number of logical processors/cores on the current machine. + static int NumberOfProcessors(); +}; + +} // namespace base + +#endif // BASE_SYS_INFO_H_ |