]> Cypherpunks repositories - gostls13.git/commit
runtime: add read/write mutex type
authorIan Lance Taylor <iant@golang.org>
Thu, 15 Jun 2017 23:42:08 +0000 (16:42 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 19 Jun 2017 17:40:38 +0000 (17:40 +0000)
commit09ebbf408530b82f1a817e2f648e1c5618eeb1ab
tree52a58a8e584a8f1d9a90605e1db41d6e725df626
parent6c2458e72d85dd0d388e4d27b6b361899084d526
runtime: add read/write mutex type

This is a runtime version of sync.RWMutex that can be used by code in
the runtime package. The type is not quite the same, in that the zero
value is not valid.

For future use by CL 43713.

Updates #19546

Change-Id: I431eb3688add16ce1274dab97285f555b72735bf
Reviewed-on: https://go-review.googlesource.com/45991
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/export_test.go
src/runtime/rwmutex.go [new file with mode: 0644]
src/runtime/rwmutex_test.go [new file with mode: 0644]
src/sync/rwmutex.go
src/sync/rwmutex_test.go