lockfreequeue

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

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

func NewQueue

func NewQueue(cap uint32) *Queue

func (*Queue) Capacity

func (q *Queue) Capacity() uint32

func (*Queue) Pull

func (q *Queue) Pull() (val interface{}, ok bool, quantity uint32)

func (*Queue) Push

func (q *Queue) Push(val interface{}) (ok bool, quantity uint32)

func (*Queue) Quantity

func (q *Queue) Quantity() uint32

func (*Queue) String

func (q *Queue) String() string

Jump to

Keyboard shortcuts

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