]> Cypherpunks repositories - gostls13.git/commit
syscall: fix data races in LazyDLL/LazyProc
authorDmitriy Vyukov <dvyukov@google.com>
Fri, 16 Nov 2012 08:06:48 +0000 (12:06 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Fri, 16 Nov 2012 08:06:48 +0000 (12:06 +0400)
commit9b4aaa418fe415bae73a65f9be2dcbc642bb8edf
tree47329bd198243f424a708af2e2f891071cb28028
parent8b7ea6489c40f2e54d01836b2fae611c39fb09d4
syscall: fix data races in LazyDLL/LazyProc
Reincarnation of https://golang.org/cl/6817086 (sent from another account).
It is ugly because sync.Once will cause allocation of a closure.
Fixes #4343.

R=golang-dev, bradfitz, alex.brainman
CC=golang-dev
https://golang.org/cl/6856046
src/pkg/syscall/dll_windows.go