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

Unified Diff: runtime/bin/eventhandler_android.cc

Issue 908183002: Implement mac support for having multiple Dart_Port's registered on one OS socket (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 5 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.h ('k') | 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_android.cc
diff --git a/runtime/bin/eventhandler_android.cc b/runtime/bin/eventhandler_android.cc
index 5dc4f7e387c28f7dbe3769ebbe99dec03355adc4..b84cfc64f8f28175e70de11bd92328cf2405c09d 100644
--- a/runtime/bin/eventhandler_android.cc
+++ b/runtime/bin/eventhandler_android.cc
@@ -133,13 +133,10 @@ void EventHandlerImplementation::UpdateEpollInstance(intptr_t old_mask,
RemoveFromEpollInstance(epoll_fd_, di);
} else if (old_mask == 0 && new_mask != 0) {
AddToEpollInstance(epoll_fd_, di);
- } else if (old_mask != 0 && new_mask != 0) {
- if (di->IsListeningSocket()) {
- ASSERT(old_mask == new_mask);
- } else {
- RemoveFromEpollInstance(epoll_fd_, di);
- AddToEpollInstance(epoll_fd_, di);
- }
+ } else if (old_mask != 0 && new_mask != 0 && old_mask != new_mask) {
+ ASSERT(!di->IsListeningSocket());
+ RemoveFromEpollInstance(epoll_fd_, di);
+ AddToEpollInstance(epoll_fd_, di);
}
}
« no previous file with comments | « runtime/bin/eventhandler.h ('k') | runtime/bin/eventhandler_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698