blockfreequeue

package
v0.0.0-...-972597a Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockSize = 1024
	BlockMask = BlockSize - 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Items [BlockSize]interface{}
	Next  *Block
}

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

func New

func New() *Queue

func (*Queue) Len

func (q *Queue) Len() int

func (*Queue) Pop

func (q *Queue) Pop() (interface{}, bool)

func (*Queue) Push

func (q *Queue) Push(v interface{})

Jump to

Keyboard shortcuts

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