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

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

Issue 2463923002: Don't use IsolateData for the exit hook as multiple embedders share the dart/bin while using differ… (Closed)
Patch Set: check secondary Created 4 years, 1 month 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 | « runtime/bin/process_android.cc ('k') | runtime/bin/process_linux.cc » ('j') | 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"
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
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)
OLDNEW
« no previous file with comments | « runtime/bin/process_android.cc ('k') | runtime/bin/process_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698