blob: b0fee65f8f38c172af99c77aa29bb1420d00607d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// -*- rust -*-
fn main() {
let port[int] p = port();
let int i = 10;
while (i > 0) {
spawn thread child(i);
i = i - 1;
}
log "main thread exiting";
}
fn child(int x) {
log x;
}
|