Debian Codegraph @

proto/buffer/shared.go

raw
1 package buffer
2
3 func BothClosed(in *Inbound, out *Outbound) (closed bool) {
4 in.L.Lock()
5 out.L.Lock()
6 closed = (in.err != nil && out.err != nil)
7 out.L.Unlock()
8 in.L.Unlock()
9 return
10 }