Chromium Code Reviews| Index: src/platform-freebsd.cc |
| diff --git a/src/platform-freebsd.cc b/src/platform-freebsd.cc |
| index 62653b4ca7f73d562c17cc2241163ea2775e9512..986c5af4dc77a3d5812e1c8a6bccabff24b13708 100644 |
| --- a/src/platform-freebsd.cc |
| +++ b/src/platform-freebsd.cc |
| @@ -181,6 +181,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(); |