cqueue

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomicLIFO

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

AtomicLIFO implements an atomic last-in-first-out linked-list.

func (*AtomicLIFO[T]) Pop

func (q *AtomicLIFO[T]) Pop() T

Pop atomically removes and returns the top value of the LIFO. It returns the zero value (nil) if the LIFO is empty.

func (*AtomicLIFO[T]) Push

func (q *AtomicLIFO[T]) Push(value T)

Push atomically adds a value to the top of the LIFO.

Jump to

Keyboard shortcuts

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