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

Unified Diff: runtime/vm/message.h

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/message.h
diff --git a/runtime/vm/message.h b/runtime/vm/message.h
index f69c3951f5f808b9c84db6daca3815ab399aa06a..17daee0587995d684fb427810f359b48d4962e9a 100644
--- a/runtime/vm/message.h
+++ b/runtime/vm/message.h
@@ -93,6 +93,8 @@ class MessageQueue {
// message is available. This function will not block.
Message* Dequeue();
+ bool IsEmpty() { return head_ == NULL; }
+
// Clear all messages from the message queue.
void Clear();

Powered by Google App Engine
This is Rietveld 408576698