Index: runtime/include/dart_native_api.h |
diff --git a/runtime/include/dart_native_api.h b/runtime/include/dart_native_api.h |
index 0a8038e675cc29e0aef65d9663083e8e22995175..7f18376d329760f4064f5fa87ebdd1cb62645a5e 100644 |
--- a/runtime/include/dart_native_api.h |
+++ b/runtime/include/dart_native_api.h |
@@ -136,6 +136,29 @@ DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id); |
/* |
+ * ================== |
+ * Thread Interrupter |
+ * ================== |
+ */ |
+ |
+/** |
+ * Enables the thread interrupter for the currently calling thread. Does not |
+ * support repeated calls. |
+ */ |
+DART_EXPORT void Dart_EnableThreadInterrupter(); |
+ |
+/** |
+ * Disables the thread interrupter for the currently calling thread. Does |
+ * not support repeated calls. |
+ */ |
+DART_EXPORT void Dart_DisableThreadInterrupter(); |
+ |
+/** |
+ * Shuts down the thread interrupter. Must be done before calling exit(). |
+ */ |
+DART_EXPORT void Dart_ShutdownThreadInterrupter(); |
+ |
+/* |
* ================= |
* Profiling support |
* ================= |