| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #ifndef BIN_PROCESS_H_ | 5 #ifndef BIN_PROCESS_H_ |
| 6 #define BIN_PROCESS_H_ | 6 #define BIN_PROCESS_H_ |
| 7 | 7 |
| 8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
| 9 #include "bin/io_buffer.h" | 9 #include "bin/io_buffer.h" |
| 10 #include "bin/thread.h" | 10 #include "bin/thread.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 return global_exit_code_; | 77 return global_exit_code_; |
| 78 } | 78 } |
| 79 | 79 |
| 80 static void SetGlobalExitCode(int exit_code) { | 80 static void SetGlobalExitCode(int exit_code) { |
| 81 MutexLocker ml(global_exit_code_mutex_); | 81 MutexLocker ml(global_exit_code_mutex_); |
| 82 global_exit_code_ = exit_code; | 82 global_exit_code_ = exit_code; |
| 83 } | 83 } |
| 84 | 84 |
| 85 static intptr_t CurrentProcessId(); | 85 static intptr_t CurrentProcessId(); |
| 86 | 86 |
| 87 static intptr_t SetSignalHandler(intptr_t signal); |
| 88 static void ClearSignalHandler(intptr_t signal); |
| 89 |
| 87 static Dart_Handle GetProcessIdNativeField(Dart_Handle process, | 90 static Dart_Handle GetProcessIdNativeField(Dart_Handle process, |
| 88 intptr_t* pid); | 91 intptr_t* pid); |
| 89 static Dart_Handle SetProcessIdNativeField(Dart_Handle process, | 92 static Dart_Handle SetProcessIdNativeField(Dart_Handle process, |
| 90 intptr_t pid); | 93 intptr_t pid); |
| 91 | 94 |
| 92 private: | 95 private: |
| 93 static int global_exit_code_; | 96 static int global_exit_code_; |
| 94 static dart::Mutex* global_exit_code_mutex_; | 97 static dart::Mutex* global_exit_code_mutex_; |
| 95 | 98 |
| 96 DISALLOW_ALLOCATION(); | 99 DISALLOW_ALLOCATION(); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 intptr_t data_size_; | 199 intptr_t data_size_; |
| 197 | 200 |
| 198 // Number of free bytes in the last node in the list. | 201 // Number of free bytes in the last node in the list. |
| 199 intptr_t free_size_; | 202 intptr_t free_size_; |
| 200 }; | 203 }; |
| 201 | 204 |
| 202 } // namespace bin | 205 } // namespace bin |
| 203 } // namespace dart | 206 } // namespace dart |
| 204 | 207 |
| 205 #endif // BIN_PROCESS_H_ | 208 #endif // BIN_PROCESS_H_ |
| OLD | NEW |