queue

package
v0.0.0-...-2d91a95 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2017 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{}
}

Queue :

func NewQueue

func NewQueue(size int) *Queue

NewQueue :

func (*Queue) Exchange

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

Exchange : When the Queue instance is used twice, efficient conversion is made based on capacity requirements

func (*Queue) Init

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

Init :

func (*Queue) Pull

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

Pull :

func (*Queue) Push

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

Push :

func (*Queue) PushSlice

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

PushSlice :

Jump to

Keyboard shortcuts

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