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/lockers.h" | 10 #include "bin/lockers.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 static intptr_t SetSignalHandler(intptr_t signal); | 123 static intptr_t SetSignalHandler(intptr_t signal); |
124 static void ClearSignalHandler(intptr_t signal); | 124 static void ClearSignalHandler(intptr_t signal); |
125 | 125 |
126 static Dart_Handle GetProcessIdNativeField(Dart_Handle process, | 126 static Dart_Handle GetProcessIdNativeField(Dart_Handle process, |
127 intptr_t* pid); | 127 intptr_t* pid); |
128 static Dart_Handle SetProcessIdNativeField(Dart_Handle process, | 128 static Dart_Handle SetProcessIdNativeField(Dart_Handle process, |
129 intptr_t pid); | 129 intptr_t pid); |
130 | 130 |
131 private: | 131 private: |
132 static int global_exit_code_; | 132 static int global_exit_code_; |
133 static dart::Mutex* global_exit_code_mutex_; | 133 static Mutex* global_exit_code_mutex_; |
134 | 134 |
135 DISALLOW_ALLOCATION(); | 135 DISALLOW_ALLOCATION(); |
136 DISALLOW_IMPLICIT_CONSTRUCTORS(Process); | 136 DISALLOW_IMPLICIT_CONSTRUCTORS(Process); |
137 }; | 137 }; |
138 | 138 |
139 | 139 |
140 class SignalInfo { | 140 class SignalInfo { |
141 public: | 141 public: |
142 SignalInfo(int fd, int signal, SignalInfo* next) | 142 SignalInfo(int fd, int signal, SignalInfo* next) |
143 : fd_(fd), | 143 : fd_(fd), |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 intptr_t data_size_; | 275 intptr_t data_size_; |
276 | 276 |
277 // Number of free bytes in the last node in the list. | 277 // Number of free bytes in the last node in the list. |
278 intptr_t free_size_; | 278 intptr_t free_size_; |
279 }; | 279 }; |
280 | 280 |
281 } // namespace bin | 281 } // namespace bin |
282 } // namespace dart | 282 } // namespace dart |
283 | 283 |
284 #endif // BIN_PROCESS_H_ | 284 #endif // BIN_PROCESS_H_ |
OLD | NEW |