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

Unified Diff: include/v8-platform.h

Issue 1664203004: [platform] Add NumberOfAvailableBackgroundThreads (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/libplatform/default-platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8-platform.h
diff --git a/include/v8-platform.h b/include/v8-platform.h
index 4fbef0f5d96bb49ce6a473d715145f614023224a..c46a4d192fb818efbd1b810770b1f3f992d36431 100644
--- a/include/v8-platform.h
+++ b/include/v8-platform.h
@@ -56,6 +56,12 @@ class Platform {
virtual ~Platform() {}
/**
+ * Gets the number of threads that are used to execute background tasks. Can
+ * be used to limit parallelism in V8.
jochen (gone - plz use gerrit) 2016/02/05 08:27:07 I'd remove the "Can be used to limit..." sentence
jochen (gone - plz use gerrit) 2016/02/05 08:27:53 and maybe explain what 0 means. I'd guess it means
Michael Lippautz 2016/02/05 09:15:34 Done.
Michael Lippautz 2016/02/05 09:15:34 Done.
+ */
+ virtual int NumberOfAvailableBackgroundThreads() { return 0; }
jochen (gone - plz use gerrit) 2016/02/05 08:27:07 size_t
Michael Lippautz 2016/02/05 09:15:34 Done.
+
+ /**
* Schedules a task to be invoked on a background thread. |expected_runtime|
* indicates that the task will run a long time. The Platform implementation
* takes ownership of |task|. There is no guarantee about order of execution
« no previous file with comments | « no previous file | src/libplatform/default-platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698