]> Cypherpunks repositories - gostls13.git/commit
runtime: improve locking on openbsd
authorJoel Sing <jsing@google.com>
Sat, 8 Oct 2011 13:56:13 +0000 (00:56 +1100)
committerJoel Sing <jsing@google.com>
Sat, 8 Oct 2011 13:56:13 +0000 (00:56 +1100)
commit060ffabd18a6ab629aba4e2f4fb5d36b8a9ac61e
tree6677f5c8ded8e3eaefaaaaf942f30671acc77f14
parentbb51de1cbaf2b85fa1fa33592a00d6f58feba49a
runtime: improve locking on openbsd

Implement a locking model based on the current linux model - a
tri-state mutex with active spinning, passive spinning and sleeping.

R=golang-dev, dvyukov, rsc
CC=golang-dev
https://golang.org/cl/4974043
src/pkg/runtime/openbsd/386/sys.s
src/pkg/runtime/openbsd/amd64/defs.h
src/pkg/runtime/openbsd/amd64/sys.s
src/pkg/runtime/openbsd/thread.c