queue

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2025 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomicQueue

type AtomicQueue[T any] struct {
	// contains filtered or unexported fields
}

func NewAtomic

func NewAtomic[T any](capacity uint64) *AtomicQueue[T]

func (*AtomicQueue[T]) Capacity

func (q *AtomicQueue[T]) Capacity() uint64

func (*AtomicQueue[T]) Dequeue

func (q *AtomicQueue[T]) Dequeue() *T

func (*AtomicQueue[T]) Empty

func (q *AtomicQueue[T]) Empty() bool

func (*AtomicQueue[T]) Enqueue

func (q *AtomicQueue[T]) Enqueue(item *T)

func (*AtomicQueue[T]) Full

func (q *AtomicQueue[T]) Full() bool

func (*AtomicQueue[T]) Size

func (q *AtomicQueue[T]) Size() int

type ConcurrentQueue

type ConcurrentQueue[T any] struct {
	// contains filtered or unexported fields
}

func NewConcurrent

func NewConcurrent[T any]() *ConcurrentQueue[T]

func (*ConcurrentQueue[T]) Dequeue

func (q *ConcurrentQueue[T]) Dequeue() (item T)

func (*ConcurrentQueue[T]) Empty

func (q *ConcurrentQueue[T]) Empty() bool

func (*ConcurrentQueue[T]) Enqueue

func (q *ConcurrentQueue[T]) Enqueue(item T)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL