Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Unified Diff: src/platform.h

Issue 12089107: Determine number of available cores on all platforms. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/platform-cygwin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform.h
diff --git a/src/platform.h b/src/platform.h
index a1036c4fb71d7c4039925b720c1f13711e962912..56ac61dc7b6352a7323710daf5fd2c7445d28ef4 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -239,6 +239,8 @@ class OS {
// Sleep for a number of milliseconds.
static void Sleep(const int milliseconds);
+ static int NumberOfCores();
+
// Abort the current process.
static void Abort();
« no previous file with comments | « no previous file | src/platform-cygwin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698