base

package
v0.0.0-...-012d1c6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 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 Node

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

type Queue

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

双向非循环队列

func (*Queue) Empty

func (q *Queue) Empty() bool

func (*Queue) Pop

func (q *Queue) Pop() exec.Task

func (*Queue) Process

func (q *Queue) Process()

func (*Queue) Push

func (q *Queue) Push(task exec.Task)

func (*Queue) Swap

func (q *Queue) Swap(o *Queue)

type Worker

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

func NewWorker

func NewWorker() *Worker

func (*Worker) Post

func (w *Worker) Post(task exec.Task)

func (*Worker) Start

func (w *Worker) Start(wg *sync.WaitGroup)

func (*Worker) Stop

func (w *Worker) Stop()

Jump to

Keyboard shortcuts

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