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" |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 const intptr_t last = item_count_ - 1; | 381 const intptr_t last = item_count_ - 1; |
382 items_[idx].handle = MX_HANDLE_INVALID; | 382 items_[idx].handle = MX_HANDLE_INVALID; |
383 items_[idx].waitfor = MX_SIGNAL_NONE; | 383 items_[idx].waitfor = MX_SIGNAL_NONE; |
384 items_[idx].pending = MX_SIGNAL_NONE; | 384 items_[idx].pending = MX_SIGNAL_NONE; |
385 if (idx != last) { | 385 if (idx != last) { |
386 items_[idx] = items_[last]; | 386 items_[idx] = items_[last]; |
387 } | 387 } |
388 item_count_--; | 388 item_count_--; |
389 } | 389 } |
390 | 390 |
391 // Interrupt message pipe. | 391 // Interrupt channel. |
392 static mx_handle_t interrupt_in_; | 392 static mx_handle_t interrupt_in_; |
393 static mx_handle_t interrupt_out_; | 393 static mx_handle_t interrupt_out_; |
394 | 394 |
395 // Accessed only by the ExitCodeHandler thread. | 395 // Accessed only by the ExitCodeHandler thread. |
396 static mx_wait_item_t* items_; | 396 static mx_wait_item_t* items_; |
397 static intptr_t* items_to_remove_; | 397 static intptr_t* items_to_remove_; |
398 static intptr_t item_count_; | 398 static intptr_t item_count_; |
399 static intptr_t item_capacity_; | 399 static intptr_t item_capacity_; |
400 | 400 |
401 // Protected by monitor_. | 401 // Protected by monitor_. |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 void Process::ClearSignalHandler(intptr_t signal) { | 815 void Process::ClearSignalHandler(intptr_t signal) { |
816 UNIMPLEMENTED(); | 816 UNIMPLEMENTED(); |
817 } | 817 } |
818 | 818 |
819 } // namespace bin | 819 } // namespace bin |
820 } // namespace dart | 820 } // namespace dart |
821 | 821 |
822 #endif // defined(TARGET_OS_FUCHSIA) | 822 #endif // defined(TARGET_OS_FUCHSIA) |
823 | 823 |
824 #endif // !defined(DART_IO_DISABLED) | 824 #endif // !defined(DART_IO_DISABLED) |
OLD | NEW |