OLD | NEW |
1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino 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 import 'dart:fletch'; | 5 import 'dart:fletch'; |
6 | 6 |
7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
8 | 8 |
9 const int PROCESSES = 1000; | 9 const int PROCESSES = 1000; |
10 const int MESSAGES = 1000; | 10 const int MESSAGES = 1000; |
11 | 11 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 receive() => _input.receive(); | 70 receive() => _input.receive(); |
71 void send(message) => _output.send(message); | 71 void send(message) => _output.send(message); |
72 | 72 |
73 static void _setupChild(Port port) { | 73 static void _setupChild(Port port) { |
74 Channel child = new Channel(); | 74 Channel child = new Channel(); |
75 port.send(new Port(child)); | 75 port.send(new Port(child)); |
76 Function entry = child.receive(); | 76 Function entry = child.receive(); |
77 entry(new Transceiver._internal(child, port)); | 77 entry(new Transceiver._internal(child, port)); |
78 } | 78 } |
79 } | 79 } |
OLD | NEW |