1
0
mirror of https://github.com/golang/go synced 2024-09-24 09:30:13 -06:00

syscall: fix nacl build

Timer callback does not accept now as first arg anymore.

LGTM=dave
R=golang-codereviews, dave
CC=golang-codereviews
https://golang.org/cl/126530043
This commit is contained in:
Dmitriy Vyukov 2014-08-22 11:46:10 +04:00
parent e6f0b74667
commit 0065cbe5d0

View File

@ -21,7 +21,7 @@ type runtimeTimer struct {
i int32
when int64
period int64
f func(int64, interface{}) // NOTE: must not be closure
f func(interface{}) // NOTE: must not be closure
arg interface{}
}
@ -49,7 +49,7 @@ func (t *timer) stop() {
stopTimer(&t.r)
}
func timerExpired(now int64, i interface{}) {
func timerExpired(i interface{}) {
t := i.(*timer)
go func() {
t.q.Lock()