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

Unified Diff: runtime/vm/message_handler.h

Issue 1748953003: - Add assertions in MutexLocker/MonitorLocker to ensure that the code enclosed (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code-review-comments Created 4 years, 10 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/megamorphic_cache_table.cc ('k') | runtime/vm/message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/message_handler.h
diff --git a/runtime/vm/message_handler.h b/runtime/vm/message_handler.h
index 47dfa99073a0e3dd39d6266954a58b127ebd7163..6f0132899fe683ccb7aaa080a2e7825b2e4f38c3 100644
--- a/runtime/vm/message_handler.h
+++ b/runtime/vm/message_handler.h
@@ -12,6 +12,9 @@
namespace dart {
+// Forward declarations.
+class MonitorLocker;
+
// A MessageHandler is an entity capable of accepting messages.
class MessageHandler {
protected:
@@ -225,7 +228,8 @@ class MessageHandler {
void ClearOOBQueue();
// Handles any pending messages.
- MessageStatus HandleMessages(bool allow_normal_messages,
+ MessageStatus HandleMessages(MonitorLocker* ml,
+ bool allow_normal_messages,
bool allow_multiple_normal_messages);
Monitor monitor_; // Protects all fields in MessageHandler.
« no previous file with comments | « runtime/vm/megamorphic_cache_table.cc ('k') | runtime/vm/message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698