]> Cypherpunks repositories - gostls13.git/commit
runtime: use monotonic clock for openbsd/386 and openbsd/amd64 timers
authorJoel Sing <jsing@google.com>
Wed, 26 Feb 2014 02:20:36 +0000 (13:20 +1100)
committerJoel Sing <jsing@google.com>
Wed, 26 Feb 2014 02:20:36 +0000 (13:20 +1100)
commit373466380586b04b8a9163938a8daf3f5cb9dd45
tree6b362483ed00e8fe878df5103dbe097d22e079b3
parent66562b9698ead1b8aec7af289689427d587a01bd
runtime: use monotonic clock for openbsd/386 and openbsd/amd64 timers

Switch nanotime to a monotonic clock on openbsd/386 and openbsd/amd64.
Also use a monotonic clock when for thrsleep, since the sleep duration
is based on the value returned from nanotime.

Update #6007

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/68460044
src/pkg/runtime/os_openbsd.c
src/pkg/runtime/sys_openbsd_386.s
src/pkg/runtime/sys_openbsd_amd64.s