Descriptioncgo/misc/test: burn CPU to improve sleep accuracy
Fixes issue 4008.
Run a background goroutine that wastes CPU to trick the
power management into raising the CPU frequency which,
by side effect, makes sleep more accurate on arm.
=== RUN TestParallelSleep
--- PASS: TestParallelSleep (1.30 seconds)
_cgo_gotypes.go:772: sleep(1) slept for 1.000458s
Patch Set 1 #Patch Set 2 : code review 6498060: cgo/misc/test: burn CPU to improve sleep accuracy #Patch Set 3 : diff -r 8afe25accb81 https://code.google.com/p/go #Patch Set 4 : diff -r 8afe25accb81 https://code.google.com/p/go #
Total comments: 4
Patch Set 5 : diff -r 8afe25accb81 https://code.google.com/p/go #
Total comments: 6
Patch Set 6 : diff -r 8afe25accb81 https://code.google.com/p/go #Patch Set 7 : diff -r e6da0262840c https://go.googlecode.com/hg/ #MessagesTotal messages: 13
|