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 |