File: shared.go

package info (click to toggle)
golang-github-inconshreveable-muxado 0.0~git20140312.0.f693c7e-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 256 kB
  • ctags: 374
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 188 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
package buffer

func BothClosed(in *Inbound, out *Outbound) (closed bool) {
	in.L.Lock()
	out.L.Lock()
	closed = (in.err != nil && out.err != nil)
	out.L.Unlock()
	in.L.Unlock()
	return
}