queue

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: Apache-2.0 Imports: 0 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 struct {
	PoolSize int
	PoolChan chan interface{}
}

func NewQueue

func NewQueue(size int) *Queue

func (*Queue) Exchange

func (this *Queue) Exchange(num int) (add int)

二次使用Queue实例时,根据容量需求进行高效转换

func (*Queue) Init

func (this *Queue) Init(size int) *Queue

func (*Queue) Pull

func (this *Queue) Pull() interface{}

func (*Queue) Push

func (this *Queue) Push(i interface{}) bool

func (*Queue) PushSlice

func (this *Queue) PushSlice(s []interface{})

Jump to

Keyboard shortcuts

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