Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1505)

Issue 162044: code review 162044: sync.RWMutex: rewritten to add support for concurrent r... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 3 months ago by pts
Modified:
15 years, 3 months ago
Reviewers:
CC:
rsc
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : code review 162044: sync.RWMutex: rewritten to add support for concurrent r... #

Total comments: 21

Patch Set 3 : code review 162044: sync.RWMutex: rewritten to add support for concurrent r... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -50 lines) Patch
M src/pkg/sync/Makefile View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/sync/mutex.go View 1 2 2 chunks +3 lines, -49 lines 0 comments Download
A src/pkg/sync/rwmutex.go View 1 chunk +75 lines, -0 lines 0 comments Download
A src/pkg/sync/rwmutex_test.go View 1 chunk +114 lines, -0 lines 0 comments Download
A src/pkg/sync/xadd_test.go View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 10
pts
Hello rsc, I'd like you to review the following change.
15 years, 3 months ago (2009-11-27 14:12:38 UTC) #1
rsc
Thanks. Coincidentally, I wrote a real RWMutex on the plane last night, but yours is ...
15 years, 3 months ago (2009-11-29 23:42:23 UTC) #2
pts
Done everything requested. Please have a look again. http://codereview.appspot.com/162044/diff/6/7 File src/pkg/sync/mutex.go (right): http://codereview.appspot.com/162044/diff/6/7#newcode13 src/pkg/sync/mutex.go:13: // ...
15 years, 3 months ago (2009-11-30 13:00:59 UTC) #3
rsc
> By the way, my test indicates that it's not a perfect FIFO: > http://code.google.com/p/pts-mini-gpl/source/browse/trunk/go/lockorder.go ...
15 years, 3 months ago (2009-11-30 16:55:14 UTC) #4
pts
Any update on this code review. Do I get LGTM?
15 years, 3 months ago (2009-11-30 19:51:25 UTC) #5
rsc
On Mon, Nov 30, 2009 at 11:51, <pts@google.com> wrote: > Any update on this code ...
15 years, 3 months ago (2009-11-30 19:52:59 UTC) #6
rsc
About to submit this. I tweaked the Makefile to be in the standard one-file-per-line form, ...
15 years, 3 months ago (2009-11-30 20:06:07 UTC) #7
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=087a6f6cd51a *** sync.RWMutex: rewritten to add support for concurrent readers. Also made ...
15 years, 3 months ago (2009-11-30 20:10:59 UTC) #8
pts
> i'll get there - i was offline most of last week > and have ...
15 years, 3 months ago (2009-11-30 20:19:24 UTC) #9
rsc
15 years, 3 months ago (2009-12-02 09:52:54 UTC) #10

          
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b