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

Unified Diff: include/libplatform/libplatform.h

Issue 363303002: Add an API to pump the message loop to libplatform (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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') | test/cctest/test-libplatform-default-platform.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/libplatform/libplatform.h
diff --git a/include/libplatform/libplatform.h b/include/libplatform/libplatform.h
index 5867a3268267c3aabadbe8665d13ad0e55520153..6dfa83fcbb4363967432cdd49c23876025686b4c 100644
--- a/include/libplatform/libplatform.h
+++ b/include/libplatform/libplatform.h
@@ -21,6 +21,17 @@ namespace platform {
v8::Platform* CreateDefaultPlatform(int thread_pool_size = 0);
+/**
+ * Pumps the message loop for the given isolate.
+ *
+ * The caller has to make sure that this is called from the right thread.
+ * Returns true if a task was executed, and false otherwise. This call does
+ * not block if not task is pending. The |platform| has to be created using
marja 2014/07/03 09:26:35 nit: if *no* task..
+ * |CreateDefaultPlatform|.
+ */
+bool PumpMessageLoop(v8::Platform* platform, v8::Isolate* isolate);
+
+
} // namespace platform
} // namespace v8
« no previous file with comments | « no previous file | src/libplatform/default-platform.h » ('j') | test/cctest/test-libplatform-default-platform.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698