queue

package
v0.0.0-...-817968b Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue interface {
	Enqueue(v interface{})
	Dequeue() interface{}
}

Queue is a FIFO data structure. Push puts a value into its tail, Pop removes a value from its head. It returns nil if the queue is empty. https://colobu.com/2020/08/14/lock-free-queue-in-go/ https://zhuanlan.zhihu.com/p/39005435

func NewLockFree

func NewLockFree() Queue

NewLockFree return lock-free queue

Jump to

Keyboard shortcuts

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