diff options
author | Russ Cox <rsc@golang.org> | 2009-05-08 15:21:41 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-05-08 15:21:41 -0700 |
commit | 1ea895d9a458c9e4a91993924fcd39ce7f1dcabe (patch) | |
tree | 5b8c80c41b4110b57cef1a0945350c2caf7557e2 /test/chan/nonblock.go | |
parent | 206ea17d5fe6ad6d6492afe73ec2d72ce399a3fd (diff) | |
download | golang-1ea895d9a458c9e4a91993924fcd39ce7f1dcabe.tar.gz |
move things out of sys into os and runtime
R=r
OCL=28569
CL=28573
Diffstat (limited to 'test/chan/nonblock.go')
-rw-r--r-- | test/chan/nonblock.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/chan/nonblock.go b/test/chan/nonblock.go index 2b61ec9db..5fd7f0d45 100644 --- a/test/chan/nonblock.go +++ b/test/chan/nonblock.go @@ -9,6 +9,7 @@ package main +import "runtime" import "time" func i32receiver(c chan int32, strobe chan bool) { @@ -55,9 +56,9 @@ var ticker = time.Tick(10*1000); // 10 us func sleep() { <-ticker; <-ticker; - sys.Gosched(); - sys.Gosched(); - sys.Gosched(); + runtime.Gosched(); + runtime.Gosched(); + runtime.Gosched(); } func main() { |