queue

package
v0.0.0-...-b628505 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 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 LKQueue

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

LKQueue lock-free的queue

func NewLKQueue

func NewLKQueue() *LKQueue

func (*LKQueue) Dequeue

func (q *LKQueue) Dequeue() interface{}

Dequeue 出队,没有元素则返回nil

func (*LKQueue) Enqueue

func (q *LKQueue) Enqueue(v interface{})

Enqueue 入队

Jump to

Keyboard shortcuts

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