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

Unified Diff: runtime/include/dart_api.h

Issue 1483113002: Thread and Timeline fixes for Mojo. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
index 2ac47398d1090ddfa21905eb56350f9f68c3dfcd..b0d6b3d9f5143a72107792f0c5aed5e3dcb74d4e 100755
--- a/runtime/include/dart_api.h
+++ b/runtime/include/dart_api.h
@@ -884,6 +884,14 @@ DART_EXPORT void* Dart_IsolateData(Dart_Isolate isolate);
DART_EXPORT Dart_Handle Dart_DebugName();
/**
+ * Threads created by the embedder (other than the thread that called
Ivan Posva 2015/12/01 05:08:42 This should not be necessary if I understand the d
zra 2015/12/01 17:38:21 Move to OSThread::Current() as discussed offline.
+ * Dart_Initialize) must call this function before entering an Isolate.
+ *
+ * Returns true if the thread is successfully registered.
+ */
+DART_EXPORT bool Dart_RegisterEmbedderThread(const char* name);
+
+/**
* Enters an isolate. After calling this function,
* the current isolate will be set to the provided isolate.
*
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698