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

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
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/message_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/message.h
diff --git a/runtime/vm/message.h b/runtime/vm/message.h
index f69c3951f5f808b9c84db6daca3815ab399aa06a..113a943679c80fb09dc01eaf6cb38863b034fab9 100644
--- a/runtime/vm/message.h
+++ b/runtime/vm/message.h
@@ -93,12 +93,12 @@ 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();
private:
- friend class MessageQueueTestPeer;
-
Message* head_;
Message* tail_;
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698