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

Side by Side Diff: runtime/bin/directory.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) 2012, 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/directory.h" 5 #include "bin/directory.h"
6 6
7 #include "bin/dartutils.h" 7 #include "bin/dartutils.h"
8 #include "bin/thread.h"
9 #include "include/dart_api.h" 8 #include "include/dart_api.h"
10 #include "platform/assert.h" 9 #include "platform/assert.h"
11 10
12 11
13 namespace dart { 12 namespace dart {
14 namespace bin { 13 namespace bin {
15 14
16 void FUNCTION_NAME(Directory_Current)(Dart_NativeArguments args) { 15 void FUNCTION_NAME(Directory_Current)(Dart_NativeArguments args) {
17 char* current = Directory::Current(); 16 char* current = Directory::Current();
18 if (current != NULL) { 17 if (current != NULL) {
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 if (listing->error()) { 420 if (listing->error()) {
422 listing->HandleError("Invalid path"); 421 listing->HandleError("Invalid path");
423 listing->HandleDone(); 422 listing->HandleDone();
424 } else { 423 } else {
425 while (ListNext(listing)) {} 424 while (ListNext(listing)) {}
426 } 425 }
427 } 426 }
428 427
429 } // namespace bin 428 } // namespace bin
430 } // namespace dart 429 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/directory.h ('k') | runtime/bin/eventhandler.cc » ('j') | runtime/bin/io_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698