 Chromium Code Reviews
 Chromium Code Reviews Issue 12089107:
  Determine number of available cores on all platforms.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
    
  
    Issue 12089107:
  Determine number of available cores on all platforms.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge| Index: src/platform-win32.cc | 
| diff --git a/src/platform-win32.cc b/src/platform-win32.cc | 
| index 0f0143a9835decc925d483e039231eab361e90db..16f391934a50bf235df6a5c5ac2db22acb0c4319 100644 | 
| --- a/src/platform-win32.cc | 
| +++ b/src/platform-win32.cc | 
| @@ -968,6 +968,13 @@ void OS::Sleep(int milliseconds) { | 
| } | 
| +int OS::NumberOfCores() { | 
| + SYSTEM_INFO info; | 
| + GetSystemInfo(&info); | 
| + return info.dwNumberOfProcessors; | 
| +} | 
| + | 
| + | 
| void OS::Abort() { | 
| if (IsDebuggerPresent() || FLAG_break_on_abort) { | 
| DebugBreak(); |