sync

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PoolForStrictConcurrency = PoolPerformanceOption(1)
	PoolForPerformance       = PoolPerformanceOption(2)
)

Functions

This section is empty.

Types

type Pool

type Pool struct {
	New      func() interface{}
	Finalize func(interface{})
	// contains filtered or unexported fields
}

func InitPool

func InitPool(p *Pool, cap int, opt PoolPerformanceOption) *Pool

func NewPool

func NewPool(cap int, opt PoolPerformanceOption) *Pool

func (*Pool) Close

func (p *Pool) Close()

func (*Pool) Get

func (p *Pool) Get() interface{}

func (*Pool) Put

func (p *Pool) Put(i interface{})

type PoolPerformanceOption

type PoolPerformanceOption int

type WaitGroup

type WaitGroup struct {
	sync.WaitGroup
	// contains filtered or unexported fields
}

func (*WaitGroup) Add

func (wg *WaitGroup) Add(delta int)

func (*WaitGroup) Done

func (wg *WaitGroup) Done()

func (*WaitGroup) IsWaiting

func (wg *WaitGroup) IsWaiting() bool

func (*WaitGroup) NumWaiting

func (wg *WaitGroup) NumWaiting() int

func (*WaitGroup) Reset

func (wg *WaitGroup) Reset()

Directories

Path Synopsis
Package heap provides heap operations for any type that implements heap.Interface.
Package heap provides heap operations for any type that implements heap.Interface.

Jump to

Keyboard shortcuts

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