Chromium Code Reviews| 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. |
| * |