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

Unified Diff: runtime/bin/socket_win.cc

Issue 25631005: Reuse thread when writing stdout/stderr on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make the thread a part of the StdHandle. Created 7 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 | « runtime/bin/eventhandler_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_win.cc
diff --git a/runtime/bin/socket_win.cc b/runtime/bin/socket_win.cc
index 87a0b30e2f5350a91da3cfdd841f0967243d14ce..a5d55a9fff5c39717e2f5ce14e92fd3cfabbbdeb 100644
--- a/runtime/bin/socket_win.cc
+++ b/runtime/bin/socket_win.cc
@@ -198,11 +198,11 @@ intptr_t Socket::GetStdioHandle(intptr_t num) {
if (handle == INVALID_HANDLE_VALUE) {
return -1;
}
- FileHandle* file_handle = new FileHandle(handle);
- if (file_handle == NULL) return -1;
- file_handle->MarkDoesNotSupportOverlappedIO();
- file_handle->EnsureInitialized(EventHandler::delegate());
- return reinterpret_cast<intptr_t>(file_handle);
+ StdHandle* std_handle = new StdHandle(handle);
+ if (std_handle == NULL) return -1;
+ std_handle->MarkDoesNotSupportOverlappedIO();
+ std_handle->EnsureInitialized(EventHandler::delegate());
+ return reinterpret_cast<intptr_t>(std_handle);
}
« no previous file with comments | « runtime/bin/eventhandler_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698