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

Side by Side Diff: lib/os/os.dart

Issue 1413863004: Rename the _fletch_system and service and dart: libraries (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Fixes after self-review Created 5 years, 2 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 | « lib/math/math_patch.dart ('k') | lib/service/service.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) 2015, the Fletch project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Fletch 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library dart.fletch.os; 5 library dart.fletch.os;
6 6
7 import 'dart:_fletch_system' as fletch; 7 import 'dart:fletch._system' as fletch;
8 import 'dart:fletch'; 8 import 'dart:fletch';
9 import 'dart:fletch.ffi'; 9 import 'dart:fletch.ffi';
10 10
11 part 'native_process.dart'; 11 part 'native_process.dart';
12 part 'event_handler.dart'; 12 part 'event_handler.dart';
13 part 'event_handler_linux.dart'; 13 part 'event_handler_linux.dart';
14 part 'event_handler_macos.dart'; 14 part 'event_handler_macos.dart';
15 15
16 final ForeignFunction _nanosleep = ForeignLibrary.main.lookup("nanosleep"); 16 final ForeignFunction _nanosleep = ForeignLibrary.main.lookup("nanosleep");
17 17
(...skipping 11 matching lines...) Expand all
29 timespec.tv_sec = milliseconds ~/ 1000; 29 timespec.tv_sec = milliseconds ~/ 1000;
30 timespec.tv_nsec = (milliseconds % 1000) * 1000000; 30 timespec.tv_nsec = (milliseconds % 1000) * 1000000;
31 int result; 31 int result;
32 try { 32 try {
33 result = _nanosleep.icall$2Retry(timespec, timespec); 33 result = _nanosleep.icall$2Retry(timespec, timespec);
34 } finally { 34 } finally {
35 timespec.free(); 35 timespec.free();
36 } 36 }
37 if (result != 0) throw "Failed to call 'nanosleep': ${Foreign.errno}"; 37 if (result != 0) throw "Failed to call 'nanosleep': ${Foreign.errno}";
38 } 38 }
OLDNEW
« no previous file with comments | « lib/math/math_patch.dart ('k') | lib/service/service.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698