Index: src/platform-macos.cc |
diff --git a/src/platform-macos.cc b/src/platform-macos.cc |
index 899405e7f9751fb3644737f7cf0478a2b4e7eb8a..fde5217a78ddd7fac4ff8a52937b423fca8a8c98 100644 |
--- a/src/platform-macos.cc |
+++ b/src/platform-macos.cc |
@@ -171,6 +171,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(); |