summaryrefslogtreecommitdiff
path: root/test/ken/chan1.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-05-08 15:21:41 -0700
committerRuss Cox <rsc@golang.org>2009-05-08 15:21:41 -0700
commit1ea895d9a458c9e4a91993924fcd39ce7f1dcabe (patch)
tree5b8c80c41b4110b57cef1a0945350c2caf7557e2 /test/ken/chan1.go
parent206ea17d5fe6ad6d6492afe73ec2d72ce399a3fd (diff)
downloadgolang-1ea895d9a458c9e4a91993924fcd39ce7f1dcabe.tar.gz
move things out of sys into os and runtime
R=r OCL=28569 CL=28573
Diffstat (limited to 'test/ken/chan1.go')
-rw-r--r--test/ken/chan1.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/ken/chan1.go b/test/ken/chan1.go
index c6d7825b7..5a59de1c0 100644
--- a/test/ken/chan1.go
+++ b/test/ken/chan1.go
@@ -6,6 +6,8 @@
package main
+import "runtime"
+
const N = 1000; // sent messages
const M = 10; // receiving goroutines
const W = 2; // channel buffering
@@ -48,9 +50,9 @@ main()
c := make(chan int, W);
for m:=0; m<M; m++ {
go r(c, m);
- sys.Gosched();
+ runtime.Gosched();
}
- sys.Gosched();
- sys.Gosched();
+ runtime.Gosched();
+ runtime.Gosched();
s(c);
}