MCPcopy
hub / github.com/rs/zerolog / ManyToOne

Struct ManyToOne

diode/internal/diodes/many_to_one.go:11–16  ·  view source on GitHub ↗

ManyToOne diode is optimal for many writers (go-routines B-n) and a single reader (go-routine A). It is not thread safe for multiple readers.

Source from the content-addressed store, hash-verified

9// ManyToOne diode is optimal for many writers (go-routines B-n) and a single
10// reader (go-routine A). It is not thread safe for multiple readers.
11type ManyToOne struct {
12 writeIndex uint64
13 readIndex uint64
14 buffer []unsafe.Pointer
15 alerter Alerter
16}
17
18// NewManyToOne creates a new diode (ring buffer). The ManyToOne diode
19// is optimized for many writers (on go-routines B-n) and a single reader

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected