| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 #if !defined(DART_IO_DISABLED) | 5 #if !defined(DART_IO_DISABLED) |
| 6 | 6 |
| 7 #include "platform/globals.h" | 7 #include "platform/globals.h" |
| 8 #if defined(TARGET_OS_FUCHSIA) | 8 #if defined(TARGET_OS_FUCHSIA) |
| 9 | 9 |
| 10 #include "bin/process.h" | 10 #include "bin/process.h" |
| 11 | 11 |
| 12 #include "bin/lockers.h" | 12 #include "bin/lockers.h" |
| 13 #include "platform/assert.h" | 13 #include "platform/assert.h" |
| 14 | 14 |
| 15 | 15 |
| 16 namespace dart { | 16 namespace dart { |
| 17 namespace bin { | 17 namespace bin { |
| 18 | 18 |
| 19 int Process::global_exit_code_ = 0; | 19 int Process::global_exit_code_ = 0; |
| 20 Mutex* Process::global_exit_code_mutex_ = new Mutex(); | 20 Mutex* Process::global_exit_code_mutex_ = new Mutex(); |
| 21 Process::ExitHook Process::exit_hook_ = NULL; |
| 21 | 22 |
| 22 void Process::TerminateExitCodeHandler() { | 23 void Process::TerminateExitCodeHandler() { |
| 23 } | 24 } |
| 24 | 25 |
| 25 intptr_t Process::CurrentProcessId() { | 26 intptr_t Process::CurrentProcessId() { |
| 26 UNIMPLEMENTED(); | 27 UNIMPLEMENTED(); |
| 27 return 0; | 28 return 0; |
| 28 } | 29 } |
| 29 | 30 |
| 30 intptr_t Process::SetSignalHandler(intptr_t signal) { | 31 intptr_t Process::SetSignalHandler(intptr_t signal) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 UNIMPLEMENTED(); | 69 UNIMPLEMENTED(); |
| 69 return -1; | 70 return -1; |
| 70 } | 71 } |
| 71 | 72 |
| 72 } // namespace bin | 73 } // namespace bin |
| 73 } // namespace dart | 74 } // namespace dart |
| 74 | 75 |
| 75 #endif // defined(TARGET_OS_FUCHSIA) | 76 #endif // defined(TARGET_OS_FUCHSIA) |
| 76 | 77 |
| 77 #endif // !defined(DART_IO_DISABLED) | 78 #endif // !defined(DART_IO_DISABLED) |
| OLD | NEW |