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

Issue 3991045: code review 3991045: Use defer to unlock mutex in crypto/rand. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 5 months ago by anschelsc
Modified:
14 years, 5 months ago
Reviewers:
CC:
agl1, golang-dev
Visibility:
Public.

Description

Use defer to unlock mutex in crypto/rand.

Patch Set 1 #

Patch Set 2 : code review 3991045: Use defer to unlock mutex in crypto/rand. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -2 lines) Patch
M src/pkg/crypto/rand/rand_unix.go View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 9
anschelsc
Hello golang-dev@googlegroups.com, I'd like you to review this change.
14 years, 5 months ago (2011-01-21 14:23:38 UTC) #1
agl1
LGTM
14 years, 5 months ago (2011-01-21 15:14:25 UTC) #2
agl1
*** Submitted as http://code.google.com/p/go/source/detail?r=9a3609f2fa0c *** Use defer to unlock mutex in crypto/rand. R=agl1 CC=golang-dev http://codereview.appspot.com/3991045 ...
14 years, 5 months ago (2011-01-21 15:15:05 UTC) #3
peterGo
Does Not LGTM 1. Locks should be released as soon as possible, not deferred. 2. ...
14 years, 5 months ago (2011-01-21 15:21:15 UTC) #4
cthom
On 21 January 2011 10:21, <go.peter.90@gmail.com> wrote: > Does Not LGTM > > 1. Locks ...
14 years, 5 months ago (2011-01-21 15:25:20 UTC) #5
rog
On 21 January 2011 15:25, Corey Thomasson <cthom.lists@gmail.com> wrote: > On 21 January 2011 10:21, ...
14 years, 5 months ago (2011-01-21 15:28:11 UTC) #6
chressie1
On Fri, Jan 21, 2011 at 4:25 PM, Corey Thomasson <cthom.lists@gmail.com> wrote: > On 21 ...
14 years, 5 months ago (2011-01-21 15:54:12 UTC) #7
rsc
LGTM The lock was only strictly necessary to protect against multiple Opens, but I can't ...
14 years, 5 months ago (2011-01-21 16:11:47 UTC) #8
rsc
14 years, 5 months ago (2011-01-21 22:12:06 UTC) #9

          
Sign in to reply to this message.

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