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

Issue 994043: code review 994043: pipe: implementation #3; this time for sure! (Closed)

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

Description

pipe: implementation #3; this time for sure! Added goroutine; got simpler. Fixes deadlock when doing Read+Close or Write+Close on same end.

Patch Set 1 #

Patch Set 2 : code review 994043: pipe: implementation #3; this time for sure! #

Total comments: 5

Patch Set 3 : code review 994043: pipe: implementation #3; this time for sure! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -128 lines) Patch
M src/pkg/io/pipe.go View 1 2 4 chunks +218 lines, -128 lines 0 comments Download
M src/pkg/io/pipe_test.go View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 6
rsc
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years, 3 months ago (2010-04-27 09:06:09 UTC) #1
cw
curious http://codereview.appspot.com/994043/diff/2001/3001 File src/pkg/io/pipe.go (right): http://codereview.appspot.com/994043/diff/2001/3001#newcode279 src/pkg/io/pipe.go:279: // but 6g doesn't see the finalizer method. ...
15 years, 3 months ago (2010-04-27 09:25:07 UTC) #2
r
LGTM nicer http://codereview.appspot.com/994043/diff/2001/3001 File src/pkg/io/pipe.go (right): http://codereview.appspot.com/994043/diff/2001/3001#newcode31 src/pkg/io/pipe.go:31: cdone chan int // read or write ...
15 years, 3 months ago (2010-04-27 16:44:17 UTC) #3
rsc
> http://codereview.appspot.com/994043/diff/2001/3001#newcode279 > src/pkg/io/pipe.go:279: // but 6g doesn't see the finalizer method. > is that ...
15 years, 3 months ago (2010-04-27 17:11:28 UTC) #4
rsc
done. On Tue, Apr 27, 2010 at 09:44, <r@golang.org> wrote: > LGTM > > nicer ...
15 years, 3 months ago (2010-04-27 17:16:51 UTC) #5
rsc
15 years, 3 months ago (2010-04-27 17:17:24 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=76161e97acf3 ***

pipe: implementation #3; this time for sure!
Added goroutine; got simpler.

Fixes deadlock when doing Read+Close
or Write+Close on same end.

R=r, cw
CC=golang-dev
http://codereview.appspot.com/994043
Sign in to reply to this message.

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