Documentation ¶
Overview ¶
Package lfg implements a lock-free, multiple-producer, multiple-consumer queue.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue[T any] struct { // contains filtered or unexported fields }
Queue[T any] is a lock-free, multiple-producer, multiple-consumer queue.
func NewQueue ¶
NewQueue creates a new Queue[T any] with the given size. The size must be a power of two.
Click to show internal directories.
Click to hide internal directories.