Versions in this module Expand all Collapse all v0 v0.1.7 Mar 20, 2022 Changes in this version + var ErrBlockR = errors.New("BlockR") + var ErrBlockW = errors.New("BlockW") + var ErrEOF = errors.New("EOF") + var ErrTruncate = errors.New("truncate") + type BinarySem interface + Destroy func() + Give func(bool) + Take func() bool + func NewBinarySem() BinarySem + type BinarySemphore chan struct + func (b BinarySemphore) Destroy() + func (b BinarySemphore) Give(force bool) + func (b BinarySemphore) Take() bool + type CounterSem interface + Destroy func() + Give func(bool) + Take func() bool + func NewCounterSem(n int, init int) CounterSem + type CounterSemphore chan struct + func (c CounterSemphore) Destroy() + func (c CounterSemphore) Give(force bool) + func (c CounterSemphore) Take() bool + type ShmQueue interface + Destroy func() + Pop func([]byte) error + Push func([]byte) error + func New(segmentSize int, total int) (ShmQueue, error) + type ShmQueue2 interface + Destroy func() + Pop func([]byte) error + Push func([]byte) error + func NewShmQueue2(segmentSize int, total int) (ShmQueue2, error)