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

Unified Diff: dart/runtime/bin/eventhandler.h

Issue 665823007: Several bugfixes in dart:io's handing of sockets (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added two spaces as requested 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 | « no previous file | dart/runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/bin/eventhandler.h
diff --git a/dart/runtime/bin/eventhandler.h b/dart/runtime/bin/eventhandler.h
index 54845d0e3f3517e43a9170a8ac6c8e8312ffe272..80efaca65775a1c88f9dc4eba0ee7cf391872cda 100644
--- a/dart/runtime/bin/eventhandler.h
+++ b/dart/runtime/bin/eventhandler.h
@@ -29,6 +29,14 @@ enum MessageFlags {
kPipe = 17,
};
+#define COMMAND_MASK ((1 << kCloseCommand) | \
+ (1 << kShutdownReadCommand) | \
+ (1 << kShutdownWriteCommand) | \
+ (1 << kReturnTokenCommand))
+#define IS_COMMAND(data, command_bit) \
+ ((data & COMMAND_MASK) == (1 << command_bit)) // NOLINT
+#define ASSERT_NO_COMMAND(data) ASSERT((data & COMMAND_MASK) == 0) // NOLINT
+#define TOKEN_COUNT(data) (data & ((1 << kCloseCommand) - 1))
class TimeoutQueue {
private:
« no previous file with comments | « no previous file | dart/runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698