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

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: 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
Index: runtime/bin/eventhandler_win.h
diff --git a/runtime/bin/eventhandler_win.h b/runtime/bin/eventhandler_win.h
index 83003845016b72ebf84b71ec8ff8b2c7f72df7c3..0aa666362a435a222dc85f3731e23dcbcf294b42 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 MarkDontSupportOverlappedIO() {
Mads Ager (google) 2011/11/15 12:45:20 Dont -> DoesNot?
Søren Gjesse 2011/11/15 13:16:05 Done.
+ flags_ |= (1 << kDontSupportOverlappedIO);
+ }
+ bool SupportsOverlappedIO() {
+ return (flags_ & (1 << kDontSupportOverlappedIO)) == 0;
+ }
+
+ void ReadSyncCompleteAsync();
+
protected:
enum Flags {
kClosing = 0,
kCloseRead = 1,
- kCloseWrite = 2
+ kCloseWrite = 2,
+ kDontSupportOverlappedIO = 3
};
explicit Handle(HANDLE handle);

Powered by Google App Engine
This is Rietveld 408576698