MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / getC

Method getC

internal/utils/bfs/gzip_reader_pool.go:60–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60func (this *GzipReaderPool) getC() chan *gzip.Reader {
61 var procId = percpu.GetProcId()
62 if procId < len(this.cList) {
63 return this.cList[procId]
64 }
65 return this.c
66}

Callers 2

GetMethod · 0.95
PutMethod · 0.95

Calls 1

GetProcIdFunction · 0.92

Tested by

no test coverage detected