Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2105)

Unified Diff: Source/wtf/NumberOfCores.cpp

Issue 23566006: Get rid of OS(SOLARIS) and OS(HURD). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: git cl try Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/wtf/MathExtras.h ('k') | Source/wtf/ThreadIdentifierDataPthreads.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/NumberOfCores.cpp
diff --git a/Source/wtf/NumberOfCores.cpp b/Source/wtf/NumberOfCores.cpp
index 9359ca541f8a0ba09a99e985db3ee7703ce5acbc..ec31bea4cba471a3928bb751d62b3bbe33ee27ef 100644
--- a/Source/wtf/NumberOfCores.cpp
+++ b/Source/wtf/NumberOfCores.cpp
@@ -32,7 +32,7 @@
// data types defined in the former. See sysctl(3) and style(9).
#include <sys/types.h>
#include <sys/sysctl.h>
-#elif OS(LINUX) || OS(SOLARIS)
+#elif OS(LINUX)
#include <unistd.h>
#elif OS(WINDOWS)
#include "wtf/UnusedParam.h"
@@ -59,7 +59,7 @@ int numberOfProcessorCores()
int sysctlResult = sysctl(name, sizeof(name) / sizeof(int), &result, &length, 0, 0);
s_numberOfCores = sysctlResult < 0 ? defaultIfUnavailable : result;
-#elif OS(LINUX) || OS(SOLARIS)
+#elif OS(LINUX)
long sysconfResult = sysconf(_SC_NPROCESSORS_ONLN);
s_numberOfCores = sysconfResult < 0 ? defaultIfUnavailable : static_cast<int>(sysconfResult);
« no previous file with comments | « Source/wtf/MathExtras.h ('k') | Source/wtf/ThreadIdentifierDataPthreads.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698