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

Unified Diff: src/cpu.h

Issue 23655004: Replace OS::NumberOfCores() with CPU::NumberOfProcessorsOnline(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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/cpu.cc » ('j') | src/cpu.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cpu.h
diff --git a/src/cpu.h b/src/cpu.h
index ef58b4cdd2f126f2fd4feeb8a822ba90aeb0a454..58c7f5d9d4a8b8610eaca8c00e7c8866c3d99931 100644
--- a/src/cpu.h
+++ b/src/cpu.h
@@ -99,6 +99,9 @@ class CPU V8_FINAL BASE_EMBEDDED {
bool has_vfp3() const { return has_vfp3_; }
bool has_vfp3_d32() const { return has_vfp3_d32_; }
+ // Returns the number of processors online.
+ static int NumberOfProcessorsOnline() V8_WARN_UNUSED_RESULT;
+
// Initializes the cpu architecture support. Called once at VM startup.
static void SetUp();
« no previous file with comments | « no previous file | src/cpu.cc » ('j') | src/cpu.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698