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

Unified Diff: runtime/bin/eventhandler.h

Issue 174033002: Add missing mutex protection for timeout queue with mutex (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add a couple of ASSERTs Created 6 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 | « no previous file | runtime/bin/eventhandler_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler.h
diff --git a/runtime/bin/eventhandler.h b/runtime/bin/eventhandler.h
index 30bc7a38db2468f37ea192ae5ec6024d8f2ef58c..6ac1ef41457a7c297bc9e949a68e4c7a5fcb7cdd 100644
--- a/runtime/bin/eventhandler.h
+++ b/runtime/bin/eventhandler.h
@@ -65,10 +65,12 @@ class TimeoutQueue {
bool HasTimeout() const { return next_timeout_ != NULL; }
int64_t CurrentTimeout() const {
+ ASSERT(next_timeout_ != NULL);
return next_timeout_->timeout();
}
Dart_Port CurrentPort() const {
+ ASSERT(next_timeout_ != NULL);
return next_timeout_->port();
}
« no previous file with comments | « no previous file | runtime/bin/eventhandler_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698