summaryrefslogtreecommitdiffstats
path: root/base/sys_info.h
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-24 16:37:13 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-24 16:37:13 +0000
commit71aa16c5feea0cdfb7bb306c414d0dd8e7f167ae (patch)
tree1b27e2cc4021b3241c1ecc736306a3aa47085713 /base/sys_info.h
parente537805e0f3c0d1559ec1db9d9d4d6d03642498f (diff)
downloadchromium_src-71aa16c5feea0cdfb7bb306c414d0dd8e7f167ae.zip
chromium_src-71aa16c5feea0cdfb7bb306c414d0dd8e7f167ae.tar.gz
chromium_src-71aa16c5feea0cdfb7bb306c414d0dd8e7f167ae.tar.bz2
Recommit r10259 after successful try server run.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10265 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info.h')
-rw-r--r--base/sys_info.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/base/sys_info.h b/base/sys_info.h
index 35d371b..16b8690 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -14,6 +14,8 @@ namespace base {
class SysInfo {
public:
// Return the number of logical processors/cores on the current machine.
+ // WARNING: On POSIX, this method uses static variables and is not threadsafe
+ // until it's been initialized by being called once without a race.
static int NumberOfProcessors();
// Return the number of bytes of physical memory on the current machine.
@@ -43,6 +45,15 @@ class SysInfo {
// Returns the version of the host operating system.
static std::string OperatingSystemVersion();
+ // Retrieves detailed numeric values for the OS version.
+ // WARNING: On OS X, this method uses static variables and is not threadsafe
+ // until it's been initialized by being called once without a race.
+ // TODO(port): Implement a Linux version of this method and enable the
+ // corresponding unit test.
+ static void OperatingSystemVersionNumbers(int32 *major_version,
+ int32 *minor_version,
+ int32 *bugfix_version);
+
// Returns the CPU architecture of the system. Exact return value may differ
// across platforms.
static std::string CPUArchitecture();