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

Unified Diff: runtime/bin/eventhandler_linux.cc

Issue 172133004: Also make eventhandler on Android edge-triggered. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « runtime/bin/eventhandler_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler_linux.cc
diff --git a/runtime/bin/eventhandler_linux.cc b/runtime/bin/eventhandler_linux.cc
index 28298c093a5adc8a2592e7c9aa4e729e084e7e6f..c6ebc335fa0b5ffd8f7fd7b82ced205b37aef4cf 100644
--- a/runtime/bin/eventhandler_linux.cc
+++ b/runtime/bin/eventhandler_linux.cc
@@ -24,7 +24,6 @@
#include "platform/hashmap.h"
#include "platform/thread.h"
#include "platform/utils.h"
-#include "vm/thread.h"
namespace dart {
@@ -249,9 +248,7 @@ intptr_t EventHandlerImplementation::GetPollEvents(intptr_t events,
// other flags.
if ((events & EPOLLIN) != 0) {
if ((events & EPOLLHUP) != 0) event_mask |= (1 << kCloseEvent);
- if ((events & EPOLLERR) != 0) {
- event_mask |= (1 << kErrorEvent);
- }
+ if ((events & EPOLLERR) != 0) event_mask |= (1 << kErrorEvent);
if (event_mask == 0) event_mask |= (1 << kInEvent);
}
} else {
« no previous file with comments | « runtime/bin/eventhandler_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698