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

Side by Side Diff: lib/isolate/isolate_leg.dart

Issue 10532123: - Move the Timer interface to the dart:isolate library so that it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | « lib/compiler/implementation/lib/io.dart ('k') | lib/isolate/timer.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) 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 5
6 /** 6 /**
7 * The `dart:isolate` library defines APIs to spawn and communicate with 7 * The `dart:isolate` library defines APIs to spawn and communicate with
8 * isolates. 8 * isolates.
9 * 9 *
10 * All code in dart runs in the context of an isolate. Each isolate has its own 10 * All code in dart runs in the context of an isolate. Each isolate has its own
(...skipping 20 matching lines...) Expand all
31 * 31 *
32 * This library is still evolving. New APIs are being added, and some will be 32 * This library is still evolving. New APIs are being added, and some will be
33 * deprecated and removed. In particular, the class [Isolate] will be 33 * deprecated and removed. In particular, the class [Isolate] will be
34 * deprecated as soon the dartvm has an implementation working for 34 * deprecated as soon the dartvm has an implementation working for
35 * [spawnFunction] and [spawnUri], and we have an API to spawn DOM isolates. 35 * [spawnFunction] and [spawnUri], and we have an API to spawn DOM isolates.
36 */ 36 */
37 #library("dart:isolate"); 37 #library("dart:isolate");
38 38
39 #import("dart:uri"); 39 #import("dart:uri");
40 #source("isolate_api.dart"); 40 #source("isolate_api.dart");
41 #source("timer.dart");
42 #source("timer_hook.dart");
41 #source("frog/compiler_hooks.dart"); 43 #source("frog/compiler_hooks.dart");
42 #source("frog/isolateimpl.dart"); 44 #source("frog/isolateimpl.dart");
43 #source("frog/ports.dart"); 45 #source("frog/ports.dart");
44 #source("frog/messages.dart"); 46 #source("frog/messages.dart");
45 47
46 /** 48 /**
47 * Called by the compiler to support switching 49 * Called by the compiler to support switching
48 * between isolates when we get a callback from the DOM. 50 * between isolates when we get a callback from the DOM.
49 */ 51 */
50 void _callInIsolate(_IsolateContext isolate, Function function) { 52 void _callInIsolate(_IsolateContext isolate, Function function) {
51 isolate.eval(function); 53 isolate.eval(function);
52 _globalState.topEventLoop.run(); 54 _globalState.topEventLoop.run();
53 } 55 }
54 56
55 /** 57 /**
56 * Called by the compiler to fetch the current isolate context. 58 * Called by the compiler to fetch the current isolate context.
57 */ 59 */
58 void _currentIsolate() => _globalState.currentContext; 60 void _currentIsolate() => _globalState.currentContext;
OLDNEW
« no previous file with comments | « lib/compiler/implementation/lib/io.dart ('k') | lib/isolate/timer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698