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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 629533002: Fix deadlock that can occur while handling service messages at a breakpoint. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 months 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/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 1f5fb044469c778d068b8e487b5aa22f2e99b720..75e0d065119020457403883ad01e83903b0ef6f8 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -1547,6 +1547,13 @@ DART_EXPORT bool Dart_HandleServiceMessages() {
}
+DART_EXPORT bool Dart_HasServiceMessages() {
+ Isolate* isolate = Isolate::Current();
+ ASSERT(isolate);
+ return isolate->message_handler()->HasOOBMessages();
+}
+
+
DART_EXPORT bool Dart_HasLivePorts() {
Isolate* isolate = Isolate::Current();
ASSERT(isolate);
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/message.h » ('j') | runtime/vm/message_handler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698