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

Method getC

internal/utils/bfs/gzip_writer_pool.go:57–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (this *GzipWriterPool) getC() chan *gzip.Writer {
58 var procId = percpu.GetProcId()
59 if procId < len(this.cList) {
60 return this.cList[procId]
61 }
62 return this.c
63}

Callers 2

GetMethod · 0.95
PutMethod · 0.95

Calls 1

GetProcIdFunction · 0.92

Tested by

no test coverage detected