]> Cypherpunks repositories - gostls13.git/commit
sync.RWMutex: rewritten to add support for concurrent readers.
authorPéter Szabó <pts@google.com>
Mon, 30 Nov 2009 20:10:56 +0000 (12:10 -0800)
committerRuss Cox <rsc@golang.org>
Mon, 30 Nov 2009 20:10:56 +0000 (12:10 -0800)
commit12206f64dd3db59b3e61779c3d1bd14373012d1f
tree8f3d784cf06de2970939d3b0802b5d6a7603c323
parent229807c8c3698c225a3fbcf594a40054e01c7758
sync.RWMutex: rewritten to add support for concurrent readers.

Also made sync.xadd public to help testing sync.RWMutex.

Also added unit tests for sync.RWMutex.

R=rsc
https://golang.org/cl/162044
src/pkg/sync/Makefile
src/pkg/sync/mutex.go
src/pkg/sync/rwmutex.go [new file with mode: 0644]
src/pkg/sync/rwmutex_test.go [new file with mode: 0644]
src/pkg/sync/xadd_test.go [new file with mode: 0644]