Re: [go-nuts] Panic recovery and mutex lock question

2017-10-17 Thread Ian Lance Taylor
On Tue, Oct 17, 2017 at 5:03 PM, wrote: > > I was wondering if the code ever panics and we have a if recover := > recover(); recover != nil { > > in a defer func and we are using sync.RWMutexes which do not have a defer to > unlock for example. > > What kinds of things can happen if the code unex

[go-nuts] Panic recovery and mutex lock question

2017-10-17 Thread davidrenne
Hi there, I was wondering if the code ever panics and we have a if recover := recover(); recover != nil { in a defer func and we are using sync.RWMutexes which do not have a defer to unlock for example. What kinds of things can happen if the code unexpectedly panics when we are in a Lock() in