Index: src/platform-cygwin.cc |
diff --git a/src/platform-cygwin.cc b/src/platform-cygwin.cc |
index 3456d32a6e3b3e528d8b854f2d0ce4d540827421..8914d636e5c4434dfa78f0f4bf8f758c397d5d50 100644 |
--- a/src/platform-cygwin.cc |
+++ b/src/platform-cygwin.cc |
@@ -177,6 +177,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(); |