Chromium Code Reviews| 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 |
|
Ivan Posva
2012/01/10 00:28:09
.
Mads Ager (google)
2012/01/10 06:55:05
Done.
| |
| 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/process.h" | 8 #include "bin/process.h" |
| 9 #include "bin/eventhandler.h" | 9 #include "bin/eventhandler.h" |
| 10 | |
| 11 #include "platform/globals.h" | 10 #include "platform/globals.h" |
| 12 | 11 |
| 13 static const int kReadHandle = 0; | 12 static const int kReadHandle = 0; |
| 14 static const int kWriteHandle = 1; | 13 static const int kWriteHandle = 1; |
| 15 | 14 |
| 16 class ProcessInfo { | 15 class ProcessInfo { |
| 17 public: | 16 public: |
| 18 ProcessInfo(DWORD process_id, HANDLE process_handle, HANDLE exit_pipe) | 17 ProcessInfo(DWORD process_id, HANDLE process_handle, HANDLE exit_pipe) |
| 19 : process_id_(process_id), | 18 : process_id_(process_id), |
| 20 process_handle_(process_handle), | 19 process_handle_(process_handle), |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 406 return false; | 405 return false; |
| 407 } | 406 } |
| 408 } | 407 } |
| 409 return true; | 408 return true; |
| 410 } | 409 } |
| 411 | 410 |
| 412 | 411 |
| 413 void Process::Exit(intptr_t id) { | 412 void Process::Exit(intptr_t id) { |
| 414 RemoveProcess(id); | 413 RemoveProcess(id); |
| 415 } | 414 } |
| OLD | NEW |