MCPcopy
hub / github.com/containerd/containerd / newPipeWriter

Function newPipeWriter

core/remotes/docker/fetcher.go:115–126  ·  view source on GitHub ↗
(bufPool *bufferPool)

Source from the content-addressed store, hash-verified

113}
114
115func newPipeWriter(bufPool *bufferPool) (*pipeReader, *pipeWriter) {
116 p := &pipe{
117 cond: sync.NewCond(new(sync.Mutex)),
118 bufPool: bufPool,
119 buf: nil,
120 }
121 return &pipeReader{
122 pipe: p,
123 }, &pipeWriter{
124 pipe: p,
125 }
126}
127
128// Read implements the standard Read interface: it reads data from the pipe,
129// reading from the internal buffer, otherwise blocking until a writer arrives

Callers 1

openMethod · 0.85

Calls 1

newFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…