Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: runtime/bin/process_fuchsia.cc

Issue 2614253002: Use the new MX_PROCESS_SIGNALED signal name (Closed)
Patch Set: Fuchsia's message pipes are called channels for a while now Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698