☰
Debian Codegraph
@
0.0~git20140312.0.f693c7e-3
/
/
proto
/
buffer
/
shared.go
☽
☼
proto/buffer/shared.go
code
plain
raw
Apache-2.0
2013 Alan Shreve
debian/copyright
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
}