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

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

Issue 9310053: Rework Windows process handling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix Windows build and add stable binaries. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/process.h ('k') | runtime/bin/process_impl.dart » ('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) 2011, 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 #include "bin/dartutils.h" 5 #include "bin/dartutils.h"
6 #include "bin/process.h" 6 #include "bin/process.h"
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) { 10 void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) {
11 Dart_EnterScope(); 11 Dart_EnterScope();
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 107 }
108 108
109 109
110 void FUNCTION_NAME(Process_Kill)(Dart_NativeArguments args) { 110 void FUNCTION_NAME(Process_Kill)(Dart_NativeArguments args) {
111 Dart_EnterScope(); 111 Dart_EnterScope();
112 intptr_t pid = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 1)); 112 intptr_t pid = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 1));
113 bool success = Process::Kill(pid); 113 bool success = Process::Kill(pid);
114 Dart_SetReturnValue(args, Dart_NewBoolean(success)); 114 Dart_SetReturnValue(args, Dart_NewBoolean(success));
115 Dart_ExitScope(); 115 Dart_ExitScope();
116 } 116 }
117
118
119 void FUNCTION_NAME(Process_Exit)(Dart_NativeArguments args) {
120 Dart_EnterScope();
121 intptr_t pid = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 1));
122 Process::Exit(pid);
123 Dart_ExitScope();
124 }
OLDNEW
« no previous file with comments | « runtime/bin/process.h ('k') | runtime/bin/process_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698