Index: src/platform-solaris.cc |
diff --git a/src/platform-solaris.cc b/src/platform-solaris.cc |
index 9724cd1ba9c53c61ba42ec0ac3d88450fc091582..85ba95f7245668543cd17d70d2764f051ca735a3 100644 |
--- a/src/platform-solaris.cc |
+++ b/src/platform-solaris.cc |
@@ -191,6 +191,11 @@ void OS::Sleep(int milliseconds) { |
} |
+int OS::NumberOfCores() { |
+ return sysconf(_SC_NPROCESSORS_ONLN); |
+} |
+ |
+ |
void OS::Abort() { |
// Redirect to std abort to signal abnormal program termination. |
abort(); |