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

Unified Diff: runtime/include/dart_native_api.h

Issue 109803002: Profiler Take 2 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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
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
* =================
« runtime/bin/file.cc ('K') | « runtime/bin/utils_macos.cc ('k') | runtime/platform/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698