MCPcopy Create free account
hub / github.com/egonelbre/exp / reader

Function reader

ring/example/main.go:29–39  ·  view source on GitHub ↗
(data *ring.Ring)

Source from the content-addressed store, hash-verified

27}
28
29func reader(data *ring.Ring) {
30 for {
31 cell := data.Dequeue()
32 if cell == nil {
33 panic("invalid value")
34 }
35
36 atomic.AddInt64(&TotalRead, cell.Size)
37 cell.Release()
38 }
39}
40
41func monitor(data *ring.Ring) {
42 for {

Callers 1

mainFunction · 0.85

Calls 2

DequeueMethod · 0.65
ReleaseMethod · 0.45

Tested by

no test coverage detected