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

Side by Side Diff: runtime/bin/process_win.cc

Issue 9114008: Introduce runtime/platform directory for code shared between vm (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Windows fixes. Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include <process.h> 5 #include <process.h>
6 6
7 #include "bin/builtin.h" 7 #include "bin/builtin.h"
8 #include "bin/globals.h"
9 #include "bin/process.h" 8 #include "bin/process.h"
10 #include "bin/eventhandler.h" 9 #include "bin/eventhandler.h"
11 10
11 #include "platform/globals.h"
12
12 static const int kReadHandle = 0; 13 static const int kReadHandle = 0;
13 static const int kWriteHandle = 1; 14 static const int kWriteHandle = 1;
14 15
15 class ProcessInfo { 16 class ProcessInfo {
16 public: 17 public:
17 ProcessInfo(DWORD process_id, HANDLE process_handle, HANDLE exit_pipe) 18 ProcessInfo(DWORD process_id, HANDLE process_handle, HANDLE exit_pipe)
18 : process_id_(process_id), 19 : process_id_(process_id),
19 process_handle_(process_handle), 20 process_handle_(process_handle),
20 exit_pipe_(exit_pipe) { } 21 exit_pipe_(exit_pipe) { }
21 22
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 return false; 406 return false;
406 } 407 }
407 } 408 }
408 return true; 409 return true;
409 } 410 }
410 411
411 412
412 void Process::Exit(intptr_t id) { 413 void Process::Exit(intptr_t id) {
413 RemoveProcess(id); 414 RemoveProcess(id);
414 } 415 }
OLDNEW
« no previous file with comments | « runtime/bin/process.h ('k') | runtime/bin/socket.h » ('j') | runtime/platform/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698