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

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

Issue 463993002: - Separate the thread implementation used in bin/ and vm/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/builtin.h" 5 #include "bin/builtin.h"
6 #include "bin/dartutils.h" 6 #include "bin/dartutils.h"
7 #include "bin/utils.h" 7 #include "bin/utils.h"
8 #include "bin/stdio.h" 8 #include "bin/stdio.h"
9 9
10 #include "platform/globals.h" 10 #include "platform/globals.h"
11 #include "platform/thread.h"
12 #include "platform/utils.h" 11 #include "platform/utils.h"
13 12
14 #include "include/dart_api.h" 13 #include "include/dart_api.h"
15 14
16 15
17 namespace dart { 16 namespace dart {
18 namespace bin { 17 namespace bin {
19 18
20 void FUNCTION_NAME(Stdin_ReadByte)(Dart_NativeArguments args) { 19 void FUNCTION_NAME(Stdin_ReadByte)(Dart_NativeArguments args) {
21 ScopedBlockingCall blocker; 20 ScopedBlockingCall blocker;
(...skipping 30 matching lines...) Expand all
52 Dart_ListSetAt(list, 0, Dart_NewInteger(size[0])); 51 Dart_ListSetAt(list, 0, Dart_NewInteger(size[0]));
53 Dart_ListSetAt(list, 1, Dart_NewInteger(size[1])); 52 Dart_ListSetAt(list, 1, Dart_NewInteger(size[1]));
54 Dart_SetReturnValue(args, list); 53 Dart_SetReturnValue(args, list);
55 } else { 54 } else {
56 Dart_SetReturnValue(args, DartUtils::NewDartOSError()); 55 Dart_SetReturnValue(args, DartUtils::NewDartOSError());
57 } 56 }
58 } 57 }
59 58
60 } // namespace bin 59 } // namespace bin
61 } // namespace dart 60 } // namespace dart
OLDNEW
« runtime/bin/process_linux.cc ('K') | « runtime/bin/socket.cc ('k') | runtime/bin/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698