OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |