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

Unified Diff: runtime/bin/eventhandler_win.h

Issue 8574002: Handle stdin/stdout/stderr on Windows (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments from ager@ Created 9 years, 1 month 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/builtin_in.cc ('k') | runtime/bin/eventhandler_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler_win.h
diff --git a/runtime/bin/eventhandler_win.h b/runtime/bin/eventhandler_win.h
index 83003845016b72ebf84b71ec8ff8b2c7f72df7c3..9843093216f011d8b80ed6bab79f871dbfac339e 100644
--- a/runtime/bin/eventhandler_win.h
+++ b/runtime/bin/eventhandler_win.h
@@ -185,11 +185,21 @@ class Handle {
bool is_client_socket() { return type_ == kClientSocket; }
intptr_t mask() { return mask_; }
+ void MarkDoesNotSupportOverlappedIO() {
+ flags_ |= (1 << kDoesNotSupportOverlappedIO);
+ }
+ bool SupportsOverlappedIO() {
+ return (flags_ & (1 << kDoesNotSupportOverlappedIO)) == 0;
+ }
+
+ void ReadSyncCompleteAsync();
+
protected:
enum Flags {
kClosing = 0,
kCloseRead = 1,
- kCloseWrite = 2
+ kCloseWrite = 2,
+ kDoesNotSupportOverlappedIO = 3
};
explicit Handle(HANDLE handle);
« no previous file with comments | « runtime/bin/builtin_in.cc ('k') | runtime/bin/eventhandler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698